Skip to content

Instantly share code, notes, and snippets.

View nrobinson2000's full-sized avatar

Nate Robinson nrobinson2000

View GitHub Profile
@nrobinson2000
nrobinson2000 / bitcoin_price.py
Last active December 31, 2015 15:28
bitcoin_price.py
#!/usr/bin/env python
#Bitcoin price Monitor by Nathan Robinson. GPL3 2015
import urllib2
import time
import os
refresh_rate = 5
def isInt(s):
@nrobinson2000
nrobinson2000 / bitcoin-converter.py
Last active February 22, 2016 12:58
bitcoin-converter.py
#!/usr/bin/env python
import urllib2
def turnFloat(x):
result = ""
for i in range(len(x)):
if str(x[i]).isdigit():
result = result + x[i]
if x[i] == ".":
result = result + x[i]
@nrobinson2000
nrobinson2000 / LCD-Bitcoin-Monitor.ino
Last active April 2, 2016 20:03
Display the price of Bitcoin with a Photon.
/*
Bitcoin Monitor:
This sketch shows the current Bitcoin price
on an LCD.
The circuit:
* LCD RS pin to digital pin D0
* LCD EN pin to digital pin D1
* LCD D4 pin to digital pin D2
@nrobinson2000
nrobinson2000 / bitcoinclassic-install.sh
Last active August 23, 2016 21:11
bitcoinclassic-install.sh
#bitcoinclassic-install.sh
#!/bin/bash
echo "Please run this script with sudo."
cd ~
git clone https://github.com/bitcoinclassic/bitcoinclassic.git
git pull
@nrobinson2000
nrobinson2000 / update.md
Last active September 29, 2017 07:56
Particle Offline Utility: A handy script for installing and using the Particle Toolchain on Ubuntu-based Distros and OSX
Verifying that +nrobinson2000 is my blockchain ID. https://onename.com/nrobinson2000
@nrobinson2000
nrobinson2000 / ifttt-maker.json
Last active September 15, 2017 11:43
Particle IFTTT maker channel webhook example
{
"eventName": "name-of-particle-event",
"url": "https://maker.ifttt.com/trigger/NAME_OF_IFTTT_EVENT/with/key/PUT_YOUR_IFTTT_KEY_HERE",
"requestType": "POST",
"json": {
"value1": "{{SPARK_EVENT_VALUE}}"
},
"mydevices": true
}

Keybase proof

I hereby claim:

  • I am nrobinson2000 on github.
  • I am nrobinson2000 (https://keybase.io/nrobinson2000) on keybase.
  • I have a public key ASCnFD3Xt1cApan6y7_UwLk3oJ1A5C14Cab2itHH6gKtkwo

To claim this, I am signing this object:

@nrobinson2000
nrobinson2000 / bitcoin-usd-converter.py
Created June 15, 2016 09:07
bitcoin-usd-converter.py
import urllib2
def turnFloat(x):
result = ""
for i in range(len(x)):
if str(x[i]).isdigit():
result = result + x[i]
if x[i] == ".":
result = result + x[i]
return float(result)
@nrobinson2000
nrobinson2000 / particle-and-ifttt.json
Created September 18, 2016 14:47
Hombridge config.json for creating Particle and IFTTT accessories
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:39",
"port": 51826,
"pin": "031-45-154"
},
"description": "This configuration file creates a Particle platform with 4 accessories, and an IFTTT platform with 1 accessory.",
"platforms": [
{