Skip to content

Instantly share code, notes, and snippets.

View dshack's full-sized avatar

David Shackelford dshack

View GitHub Profile
@judy-zz
judy-zz / authenticate_fitbit.rb
Last active December 11, 2015 17:08
Load data from Livestrong MyPlate (or any other source) into FitBit.
require 'oauth'
require 'launchy'
require 'yaml'
require_relative 'weights'
@consumer = OAuth::Consumer.new ENV['FITBIT_KEY'], ENV['FITBIT_SECRET'],
{:site=>"https://api.fitbit.com"}
@request_token = @consumer.get_request_token
@auth = {}
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@dbreunig
dbreunig / ReporterSaveFileDescription.md
Last active January 22, 2021 16:07
A description of the data written to the Reporter App Dropbox save folder.

#Reporter Save File Schema

##The Reporter Export File

Reporter saves to your Dropbox account with plaintext JSON files, one for each day. When a Report is entered in the app a file is created for that day if it does not exist. Otherwise, the report is appended to the existing file. The save folder is located in 'Dropbox/Apps/Reporter-App/'.

Reporter save files are named according to the following convention:

YYYY-MM-DD-reporter-export.json
@lightningdb
lightningdb / goodreads-bookmarklet.js
Last active November 22, 2023 17:36
Add to Goodreads from Amazon.com book page bookmarklet
javascript: var asin_elements, asin;asin_elements = document.getElementsByName('ASIN'); if (asin_elements.length == 0) { asin_elements = document.getElementsByName('ASIN.0'); };if (asin_elements.length == 0) { alert('Sorry, this doesn\'t appear to be an Amazon book page.'); }else { asin = asin_elements[0].value; if (asin.match(/\D/) === null) { var x = window.open('http://www.goodreads.com/review/isbn/'+ asin, 'add_review'); } else { var x = window.open('https://www.goodreads.com/search?q='+ asin); } x.focus();}