Skip to content

Instantly share code, notes, and snippets.

View jonparker's full-sized avatar
🤓
Node, GraphQL, Data

Jonathan Parker jonparker

🤓
Node, GraphQL, Data
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jonparker on github.
  • I am jonpaus (https://keybase.io/jonpaus) on keybase.
  • I have a public key ASBGdzsk2v1m_aPnb-CttpSceobBZtTm3iAaxVeM9CFhYAo

To claim this, I am signing this object:

@jonparker
jonparker / gist:d6c7d8c5bea2270cca90a169f75d91ab
Last active December 13, 2017 16:44
GoogleSheet App Script Import GDax and Poloniex and email if difference is greater than a threshold percentage.
// Gets GDAX and Poloniex prices for BTC/ETH and BTC/LTC
// Requies arbitrageSheetID set to the id of a google sheet with an APIPull tab.
function checkArbitrageOpportunities() {
var poloniexUrl = 'https://poloniex.com/public?command=returnTicker';
var poloniexResponse = UrlFetchApp.fetch(poloniexUrl);
var poloniexApiData = JSON.parse(poloniexResponse.getContentText());
var rates = ['ETH', 'LTC'];
@jonparker
jonparker / GoogleSheetsScriptPoloniexRates
Created December 9, 2017 16:57
Updates a list of Google Sheets with the rate from Poloniex
// Updates the A2 cell of the APIPull tab of the given Google
// sheet with the corresponding rate pulled from Poloniex.
// The Google sheet ID is in the URL. E.g.:
// https://docs.google.com/spreadsheets/d/**this part of the url is the Sheet id***/edit#gid=685386329
function fetchTicker() {
var rates = [{ RATE: 'BTC_XRP', SheetID: 'your google sheet id for XRP'},
{ RATE: 'BTC_ETH', SheetID: 'your google sheet id for ETH' },
{ RATE: 'BTC_LTC', SheetID: 'your google sheet id for LTC' }
];
@jonparker
jonparker / Boxstarter
Created May 15, 2015 00:22
Boxstarter
try {
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
#######################
# Basic windows config
#######################
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,