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]
Verifying that +nrobinson2000 is my blockchain ID. https://onename.com/nrobinson2000
@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

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 / 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 / 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": [
{
@nrobinson2000
nrobinson2000 / setup.sh
Created October 4, 2016 23:00
Alpha phase setup script for Raspberry Pi
#!/bin/bash
echo "Raspberry Pi Alpha Setup tool:"
echo
echo "Installing Screen..."
sudo apt-get install screen
echo
read -rp "Enter your Device ID: " deviceID
echo "$deviceID" > device_id.txt
Verifying that "nrobinson2000.id" is my Blockstack ID. https://onename.com/nrobinson2000