This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DHT.h" | |
#include <ESP8266WiFi.h> | |
#include <FirebaseArduino.h> | |
#define DHTPIN D4 | |
#define DHTTYPE DHT22 | |
#define FIREBASE_HOST "HOST" | |
#define FIREBASE_AUTH "AUTH" | |
#define WIFI_SSID "SSID" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adaptResolution(640, 1136); | |
adaptOrientation(ORIENTATION_TYPE.PORTRAIT); | |
-- Select earth shrine - exit | |
-- tap(366, 550); | |
-- log("Select earth shrine"); | |
tap(369, 707); | |
usleep(1000000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "DHT.h" | |
#include <ESP8266WiFi.h> | |
#include <FirebaseArduino.h> | |
#include "MQ135.h" | |
#define DHTPIN D3 | |
#define DHTTYPE DHT22 | |
#define ANALOGPIN A0 | |
#define RZERO 390.69 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group: Data Pegawai | |
PEGAWAI = { | |
NamaDepan, Inisial, NamaBelakang, NoKTP, Alamat, Gaji, JenisKelamin, NoKTPKepala, DNO | |
Arif, AW, Widi, 1234, Bandung, 100000, L, 4321, 1 | |
Satya, SN, Negara, 1235, Jakarta, 100000, L, 4321, 2 | |
Erwin, EJ, Jaya, 4321, Bandung, 100000, L, 0, 1 | |
} | |
DEPARTEMEN = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP Functions for Generating Lipsum Text | |
* based on Code from Emmet Sublime Text Plugin | |
* | |
*/ | |
class WP_Dummy_Lipsum_Generator { | |
var $available_langs = array( | |
'en' => array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Twitter API Class | |
*/ | |
class TwitterApi { | |
var $consumer_key = 'CONSUMER_KEY'; | |
var $consumer_secret = 'CONSUMER_KEY'; | |
var $api_baseurl = "https://api.twitter.com/1.1/"; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$kurs_page = wp_remote_get( 'http://www.bi.go.id/id/moneter/informasi-kurs/transaksi-bi/', array( 'timeout' => 20 ) ); | |
if( !is_wp_error( $kurs_page) ) { | |
$result = $kurs_page['body']; | |
$data_table = explode('<div id="right-cell">', $result); | |
$data_table = explode ('<table class="table1" cellspacing="0" rules="all" border="1" id="ctl00_PlaceHolderMain_biWebKursTransaksiBI_GridView1">',$data_table[1]); | |
$data_table = explode ('</table>', $data_table[1]); | |
$dom = new DOMDocument(); | |
$html = $data_table[0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* New WordPress 3.5 Media Uploader Snippet | |
*/ | |
jQuery(document).ready(function($){ | |
// Prepare the variable that holds our custom media manager. | |
var tgm_media_frame; | |
// Bind to our click event in order to open up the new media experience. | |
$(document.body).on('click.tgmOpenMediaManager', '.tgm-open-media', function(e){ | |
// Prevent the default action from occuring. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="pptSelector"> | |
<select name="whichppt" id="whichppt"> | |
<option value="demo-presentation">Demo Presentation</option> | |
</select> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="reveal"> | |
<!-- Used to fade in a background when a specific slide state is reached --> | |
<div class="state-background"></div> | |
<!-- Any section element inside of this container is displayed as a slide --> | |
<div class="slides"> | |
<!-- SLIDE 1 --> | |
<section> |
NewerOlder