Skip to content

Instantly share code, notes, and snippets.

View padillla's full-sized avatar

Rodolfo Padilla padillla

View GitHub Profile
@padillla
padillla / LCDWeather.ino
Last active August 12, 2016 15:00
LCD weather v.01
/*
Weather Shield Example
By: Nathan Seidle
SparkFun Electronics
Date: November 16th, 2013
License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
Much of this is based on Mike Grusin's USB Weather Board code: https://www.sparkfun.com/products/10586
This is a more advanced example of how to utilize every aspect of the weather shield. See the basic
@padillla
padillla / Dc_Voltimeter.ino
Created February 2, 2015 03:15
Arduino serial DC Voltmeter.
/*
DC Voltmeter
Based on Arduino DVM based on voltage divider concept
T.K.Hareendran
*/
int voltsInput = 0;
float vout = 0.0;
float vin = 0.0;
@padillla
padillla / map.geojson
Last active December 29, 2015 11:49
Train stops in geojson format, work in progress
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var sqlite3 = require('sqlite3').verbose();
var db = new sqlite3.Database('./db.db');
var fs = require('fs');
var outputFilename = './output.json';
var jsonOutput = db.serialize(function() {
db.each("SELECT * FROM sqlite_master WHERE type='table'", function(err, table) {
db.each("SELECT * FROM " + table.tbl_name, function(err, row) {