I hereby claim:
- I am itpcc on github.
- I am itpcc (https://keybase.io/itpcc) on keybase.
- I have a public key whose fingerprint is 3F52 CC8D 3A91 026A 1FD1 895D 2D92 37A9 E307 914D
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html ng-app> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> | |
<meta name="msapplication-TileColor" content="#32004b"> | |
<meta name="msapplication-TileImage" content="http://27.comcamp.in.th/assets/img/icon/mstile-144x144.png"> | |
<meta name="msapplication-config" content="http://27.comcamp.in.th/assets/img/icon/browserconfig.xml"> | |
<meta property="og:title" content="Comcamp #27"/> |
var fullpageOption = { | |
scrollOverflow: true, | |
onLeave: function(index, nextIndex, direction){ | |
var cntAllSlide = $("#fullpage .section").length; | |
console.log('From ->', index, 'to ->', nextIndex, 'All ->', cntAllSlide); | |
if(cntAllSlide > 4 && nextIndex >= cntAllSlide && index == cntAllSlide-1 && isCongreat && youtubePlayer && typeof youtubePlayer == "object" && typeof youtubePlayer.playVideo !== "undefined"){ | |
youtubePlayer.setVolume(30); | |
youtubePlayer.playVideo(); | |
isCongreat = false; | |
}else if(youtubePlayer && typeof youtubePlayer == "object" && typeof youtubePlayer.stopVideo !== "undefined"){ |
var youtubeScriptTag = document.createElement('script'); | |
youtubeScriptTag.src = "https://www.youtube.com/iframe_api"; | |
var firstScriptTag = document.getElementsByTagName('script')[0]; | |
firstScriptTag.parentNode.insertBefore(youtubeScriptTag, firstScriptTag); | |
var deviceRatio = ($(document).width())/($(document).height()); | |
$(window).resize(function(){ | |
var currDeviceRatio = ($(document).width())/($(document).height()); | |
if(currDeviceRatio != deviceRatio && youtubePlayer && typeof youtubePlayer.stopVideo !== "undefined"){ |
if(millis()-lastCheckEPOCH > 200){ | |
for(i = 0; i < 128; i++) | |
bitmapBuffer[i] = pgm_read_byte(&sawasdee[(rowDisplay*128)+i]); | |
OLED.LED_PrintBMP(0, rowDisplay, 127, rowDisplay, bitmapBuffer); | |
lastCheckEPOCH = millis(); | |
Serial.print("rowDisplay : "); Serial.println(rowDisplay); | |
rowDisplay++; | |
} |
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the Uno and | |
Leonardo, it is attached to digital pin 13. If you're unsure what | |
pin the on-board LED is connected to on your Arduino model, check | |
the documentation at http://www.arduino.cc | |
This example code is in the public domain. |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import Tkinter | |
import tkFileDialog | |
from PIL import Image | |
import ImageDraw | |
import PIL.ImageOps | |
__DEFAULT_VAR_NAME__ = "var1" |
#include <AntoIO.h> | |
#include <dht11.h> | |
#define DHT11PIN 12 | |
#define GPIO15 15 | |
dht11 DHT11; | |
// change ssid and password to yours | |
const char* ssid = "aisfibre2704_2.4G"; | |
const char* password = "6FF56B76"; |
#include <AntoIO.h> | |
#include <dht11.h> | |
#define DHT11PIN 12 | |
#define GPIO15 15 | |
dht11 DHT11; | |
// change ssid and password to yours | |
const char* ssid = "aisfibre2704_2.4G"; | |
const char* password = "6FF56B76"; |
I hereby claim:
To claim this, I am signing this object:
/***** GPS Helper function *****/ | |
char* getGPGGA(){ | |
unsigned long startTime = millis(); | |
char ch = '\0'; | |
char *newline; | |
size_t len; | |
memset(strBuffer, '\0', 121); | |
do{ | |
while( |