Skip to content

Instantly share code, notes, and snippets.

View GeorgeHahn's full-sized avatar
🚴‍♂️
🦀🦀🦀

George Hahn GeorgeHahn

🚴‍♂️
🦀🦀🦀
  • Colorado, USA. U+1F3D4
View GitHub Profile
[package]
name = "min"
version = "0.1.0"
edition = "2018"
[dependencies]
serde = { version = "=1.0.130", features = ["derive"] }
serde_json = "=1.0.68"
@GeorgeHahn
GeorgeHahn / expense_splitter.gs
Created August 14, 2019 01:37
Google App Script to help split expenses between two people
/// 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.

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:

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 April 15, 2017 17:46
ESP8266 OPC LED Display
/*
ESPOPC -- Open Pixel Control server for ESP8266.
TODO
Support OTA
Notes
Gamma should be corrected on sender side
The MIT License (MIT)
// 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 July 7, 2016 03:19
Tweaked code from Jens Jensen to run in ESP8266 Arduino environment
/*****************************************
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
*****************************************/
@GeorgeHahn
GeorgeHahn / spi.js
Last active May 7, 2016 01:42
Enhanced SPI decoder for OLSFront
include('util/obj_struct.js');
//////////////////////////////////////////////////////////////////////////////////////////////////
// Parser Info
//////////////////////////////////////////////////////////////////////////////////////////////////
function info()
{
parser.name = 'SPI';
parser.descr = 'SPI Parser';
/*
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"