Skip to content

Instantly share code, notes, and snippets.

View stevschmid's full-sized avatar
👻

Steven Schmid stevschmid

👻
View GitHub Profile
import consumer from "./consumer"
let subscription
const unsubscribe = () => {
console.log('unsubscribe')
subscription.unsubscribe()
}
@stevschmid
stevschmid / api-doc.md
Created September 5, 2015 15:26
How the Track-o-Bot API works

Authentication

Access any profile page by providing the username and API key (generated in the settings -> API) , e.g. https://trackobot.com/profile/history.json?username=cool-ancient-tree-1337&token=fhyf238cv2eh879

JSON

Any profile page can be requested as JSON. Simply add .json at the end of the url (but before the query string which starts with ?), see example above.

Use the browser to see the JSON structure. JSONView is an excellent browser extension which shows JSON in a nice way.

FUNCTION airline#util#exec_funcrefs()
Called 4 times
Total time: 0.006994
Self time: 0.000127
count total (s) self (s)
10 0.000022 for Fn in a:list
10 0.006934 0.000067 let code = call(Fn, a:000)
10 0.000012 if code != 0
4 0.000004 return code
@stevschmid
stevschmid / gist:6827388
Created October 4, 2013 14:58
This is not the greatest slate configuration in the world. This is just a tribute.
# from http://thume.ca/howto/2012/11/19/using-slate/
# general config
config defaultToCurrentScreen true
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
# window hints