Skip to content

Instantly share code, notes, and snippets.

Avatar
☀️
Always building something!

George Hahn GeorgeHahn

☀️
Always building something!
View GitHub Profile
@GeorgeHahn
GeorgeHahn / expense_splitter.gs
Created Aug 14, 2019
Google App Script to help split expenses between two people
View expense_splitter.gs
/// Expense Splitter
/// Copyright 2019 George Hahn
/// License: MIT (https://opensource.org/licenses/MIT)
///
/// Google App Script to help split expenses between two people.
///
/// Run monthly. Emails a summary of old expenses and locks down the old sheet.
/// Creates a new expense sheet from the template sheet.
///
/// Expense split running total should be tracked in cell B1 of the template sheet.
View keybase.md

Keybase proof

I hereby claim:

  • I am georgehahn on github.
  • I am georgehahnst (https://keybase.io/georgehahnst) on keybase.
  • I have a public key ASDAN7Cs-W0s4MUQKHMbKeUjwQmVn_LX9EtEmNxJpjRsGAo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am georgehahn on github.
  • I am georgehahn (https://keybase.io/georgehahn) on keybase.
  • I have a public key ASCYrmpXlppXhqHmCVrnuCRJgGPkf_yNukSmiHeaKza-pQo

To claim this, I am signing this object:

@GeorgeHahn
GeorgeHahn / ESPOPC.tcp.ino
Created Apr 15, 2017
ESP8266 OPC LED Display
View ESPOPC.tcp.ino
/*
ESPOPC -- Open Pixel Control server for ESP8266.
TODO
Support OTA
Notes
Gamma should be corrected on sender side
The MIT License (MIT)
View AngelList Import Tool.js
// AngelList import tool
// Only selects connections who are already on AngelList
// First, select none
var friends = document.getElementsByClassName("friend");
for(let f of friends){
var bio = f.getElementsByClassName("bio")[0];
if(bio.textContent.indexOf("Invite") !== -1)
{
@GeorgeHahn
GeorgeHahn / ESP8266 WeatherStation.ino
Created Jul 7, 2016
Tweaked code from Jens Jensen to run in ESP8266 Arduino environment
View ESP8266 WeatherStation.ino
/*****************************************
accurite 5n1 weather station decoder
for arduino and 433 MHz OOK RX module
Note: use superhet (with xtal) rx board
the regen rx boards are too noisy
Jens Jensen, (c)2015
*****************************************/
View Things.md
@GeorgeHahn
GeorgeHahn / spi.js
Last active May 7, 2016
Enhanced SPI decoder for OLSFront
View spi.js
include('util/obj_struct.js');
//////////////////////////////////////////////////////////////////////////////////////////////////
// Parser Info
//////////////////////////////////////////////////////////////////////////////////////////////////
function info()
{
parser.name = 'SPI';
parser.descr = 'SPI Parser';
View AnalogShield.ino
/*
ADC128S022
12 bits: 0.806 mV/lsb (3.3v), 1.22 mV/lsb (5v)
Bandwidth: 8MHz (3.3v), 11MHz (5v)
ESP8266 SPI pins are hardcoded to the following:
SS – D8, MOSI – D7, MISO – D6, SCK – D5
*/
#include "SPI.h"
View WeMos DHT11.ino
// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
#include "DHT.h"
#define DHTPIN D4 // what pin we're connected to
// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT22 // DHT 22 (AM2302)
You can’t perform that action at this time.