Skip to content

Instantly share code, notes, and snippets.

@otmezger
otmezger / gist:861a8913a836e0f66b5a
Created December 8, 2014 15:11
DHT 11 and RTC working on an arduino uno
boolean firstRun = true;
float H_last;
float T_last;
// ##############################################################
// R T C
// ##############################################################
// Set your own pins with these defines !
#define DS1302_SCLK_PIN 6 // Arduino pin for the Serial Clock
@otmezger
otmezger / gist:0c9880eb4063350a7059
Created August 26, 2014 21:50
Convert ISO_639 country codes with javascript
// convert ISO_639 country codes
// based on this list: http://www-01.sil.org/iso639-3/codes.asp?order=639_1&letter=%25
// generated with: http://goo.gl/EWVb6W
// discussion here: https://gist.github.com/otmezger/0c9880eb4063350a7059
// usage:
/*
var converter = new ISO639Converter();
lang_ISO639_1 = converter(lang_ISO639_3);
Process: Python [97322]
Path: /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 2.7.3 (2.7.3)
Code Type: X86-64 (Native)
Parent Process: bash [16461]
User ID: 501
Date/Time: 2013-04-02 21:32:21.883 +0200
OS Version: Mac OS X 10.8.3 (12D78)