Skip to content

Instantly share code, notes, and snippets.

@jhodges10
jhodges10 / vote_check.py
Created May 25, 2018 16:23
Particle Photon Dash Treasury Python
import json
import requests
import os
from datetime import datetime
# Set this to be the change delta you want to trigger your notifications
delta_setting = int(os.getenv('DELTA_SETTING'))
def get_mn_count():
@jhodges10
jhodges10 / voteindicator.ino
Last active May 25, 2018 22:52
Particle Photon Dash Treasury Vote Indicator
//The pin you want to control, in this case I'm blinking the on-board blue LED on digital pin D7 and an LED on pin D0
int led1 = D0;
int led2 = D7;
//This function is called after the Photon has started
void setup(){
//We set the pin mode to output
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
import requests
import json
from json import JSONDecodeError
import random
from multiprocessing import Pool
from functools import partial
from functools import lru_cache
# Insight API
@jhodges10
jhodges10 / liqui_tx_history_to_csv
Last active April 9, 2018 03:48
Export Liqui trades via the API to a Bitcoin Tax compatible CSV
from liqui import Liqui # https://pypi.python.org/pypi/liqui
import datetime
import pandas as pd
api_key = 'YOUR_API_KEY'
api_secret = 'YOU_API_SECRET'
csv_filename = 'liqui_tx.csv'
@jhodges10
jhodges10 / keybase.md
Created March 28, 2018 18:10
Keybase verification

Keybase proof

I hereby claim:

  • I am jhodges10 on github.
  • I am jhodges (https://keybase.io/jhodges) on keybase.
  • I have a public key ASDJiVGsB_IkBv0dS9YtyKea9eu6ioAzis-JActWcaJB6Qo

To claim this, I am signing this object: