Skip to content

Instantly share code, notes, and snippets.

chaeplin chaeplin

  • Seoul, South Korea
Block or report user

Report or block chaeplin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chaeplin
chaeplin / keybase.md
Last active Nov 25, 2016
keybase.txt
View keybase.md

Keybase proof

I hereby claim:

  • I am chaeplin on github.
  • I am chaeplin (https://keybase.io/chaeplin) on keybase.
  • I have a public key whose fingerprint is 0C27 188A E29B E816 DC06 8714 193C 7345 272C 3075

To claim this, I am signing this object:

View Highcharts Cheat Sheet
$('#container').highcharts({
chart: {
alignTicks: true, // When using multiple axis, the ticks of two or more opposite axes will automatically be aligned by adding ticks to the axis or axes with the least ticks.
animation: true, // Set the overall animation for all chart updating. Animation can be disabled throughout the chart by setting it to false here.
backgroundColor: '#FFF', // The background color or gradient for the outer chart area.
borderColor: '#4572A7', // The color of the outer chart border.
borderRadius: 5, // The corner radius of the outer chart border. In export, the radius defaults to 0. Defaults to 5.
borderWidth: 0, // The pixel width of the outer chart border.
className: null, // A CSS class name to apply to the charts container div, allowing unique CSS styling for each chart.
defaultSeriesType: 'line', // Alias of type.
@chaeplin
chaeplin / nginx.conf
Created Aug 20, 2016 — forked from oroce/nginx.conf
nginx config for using grafana, elasticsearch and graphite with authentication.
View nginx.conf
user www-data;
worker_processes 1;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
sendfile on;
View nest.py
#!/usr/bin/env python2
# encoding: utf-8
import sys
import time
import httplib
import json
import re
url = "api.home.nest.com"
@chaeplin
chaeplin / esp8266-lgwhisen-slack-bot.ino
Created Jun 27, 2016
esp8266-lgwhisen-slack-bot.ino
View esp8266-lgwhisen-slack-bot.ino
// 80MHZ NODEMCU V.1
// slackbot testing using https://github.com/urish/arduino-slack-bot
/**
Arduino Real-Time Slack Bot
Copyright (C) 2016, Uri Shaked.
Licensed under the MIT License
*/
View lgacdecode.ino
#include <IRremoteESP8266.h>
//#include <IRremote.h>
int RECV_PIN = 14;
IRrecv irrecv(RECV_PIN);
void setup ( )
{
Serial.begin(115200);
irrecv.enableIRIn();
@chaeplin
chaeplin / ESP.getVcc.ino
Last active Jun 13, 2016
ESP.getVcc.ino
View ESP.getVcc.ino
extern "C" {
#include "user_interface.h"
}
ADC_MODE(ADC_VCC);
int vdd;
void setup() {
Serial.begin(115200);
View for_kozoke.ino
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <PubSubClient.h>
#include <Average.h>
#include <pgmspace.h>
#include <Wire.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
//#include "/usr/local/src/ap_setting.h" // comment out this line
@chaeplin
chaeplin / readMifare.ino
Last active May 25, 2016
readMifare.ino
View readMifare.ino
/**************************************************************************/
/*!
This example will wait for any ISO14443A card or tag, and
depending on the size of the UID will attempt to read from it.
If the card has a 4-byte UID it is probably a Mifare
Classic card, and the following steps are taken:
- Authenticate block 4 (the first block of Sector 1) using
the default KEYA of 0XFF 0XFF 0XFF 0XFF 0XFF 0XFF
View attiny85.ino
/*
* Mushroom driver 1.0
* Author: anilsson of 1069 Design
* Interrupt on digital pin 1
* 10 K resistor on digital pin 1 to GND
*/
#include <avr/sleep.h>
#include <avr/wdt.h>
You can’t perform that action at this time.