Skip to content

Instantly share code, notes, and snippets.

Sam Breed wookiehangover

Block or report user

Report or block wookiehangover

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wookiehangover
wookiehangover / mac-keys.txt
Created Aug 11, 2018
autohotkey config for Mac OS-like keyboard friendliness
View mac-keys.txt
; --------------------------------------------------------------
; Application specific
; --------------------------------------------------------------
; Google Chrome
#IfWinActive, ahk_class Chrome_WidgetWin_1
; Show Web Developer Tools with cmd + alt + i
#!i::Send {F12}
View json-map.js
'use strict'
class JSONMap extends Map {
constructor (value) {
let mapArgs = []
if (value) {
for (let k of Object.keys(value)) {
mapArgs.push([ k, value[k] ])
}
}
@wookiehangover
wookiehangover / gdax-stream.js
Last active May 11, 2017
GDAX WebSocket Rolling Stats
View gdax-stream.js
'use strict'
const Gdax = require('gdax')
const h = require('highland')
const streamStatistics = require('stream-statistics')
const websocket = new Gdax.WebsocketClient(['BTC-USD'])
const tickerStream = exports.tickerStream = (s = websocket) =>
h('message', s)
.stopOnError(() =>
View instructions.md

First steps

Better instructions here, obvs: https://dnscrypt.org/

Install the dnscrypt-client and connect to one of the public nodes. I chose [https://nxt.ist]. You can "trust" these because they issue keypairs or something(?) but, caveat emptor.

But roll with the thick client because it's convenient and you'll get to see what you're in for... which is pretty boring if you're not running dig or nslookup all the time to see where your DNS entries are coming from. But then again, it's pretty boring. But at least they're encrypted?

Paranoid mode: DNSCrypt server

@wookiehangover
wookiehangover / items.json
Created Mar 19, 2015
/api/products/{product_id}/items.json
View items.json
[
{
"status": "backlog",
"product": {
"archived": false,
"id": 1,
"name": "sprint.ly"
},
"progress": {
"accepted_at": "2013-06-14T22:52:07+00:00",
View cookies.md

Sprintly Cookies

22 cookies total, not counting cookies on external domains.

3rd Party Services

Cookies created on the .sprint.ly created by external services, mostly for analytics.

  • __utma, __utmb, __utmc, __utmv, __utmz, _ga, _ga_UA-27543638-4, _gat_UA-27543638-4 are all used for Google Analytics
@wookiehangover
wookiehangover / gist:200d8679f3f19bbfd6c3
Last active Aug 29, 2015
tv code review – part 1
View gist:200d8679f3f19bbfd6c3

source/js/app.js

8: too many arguments, make this take a configuration object

10: why not attach view to the app object here?

source/js/start.js

View keybase.md

Keybase proof

I hereby claim:

  • I am wookiehangover on github.
  • I am sambreed (https://keybase.io/sambreed) on keybase.
  • I have a public key whose fingerprint is 6461 3818 B282 1034 BC96 E5F9 D6B1 6FE4 4DDF 6046

To claim this, I am signing this object:

@wookiehangover
wookiehangover / dropbox_guidelines.md
Last active Feb 20, 2017
Dropbox Design Guidelines
View dropbox_guidelines.md
  • Use a flat folder structure, organized by client name

    • No numbers, unicode dots or dashes in front of folder names
    • Never create empty directories
  • If there are less than 10 total items (design assets, screenshots, etc) there should be no sub-directories

    • This rule also applies to nested sub-directories
    • Never create empty directories
  • Files should follow a naming structure that's consistent from within a given client folder

    • We do not need to strive for consistency between clients
@wookiehangover
wookiehangover / gist:39818205cc5ca26a5006
Last active Aug 29, 2015
Motherbrain Rounds and Question Schema
View gist:39818205cc5ca26a5006

Geeks Who Drink: Motherbrain Rounds and Questions Schema

Currently there are several changes to Motherbrain needed to accomodate the mobile and Quizmaster applications.

Round Types

During the course of a quiz, it's necessary for the mobile app and Quizmaster dashboard to be able to determine the type of Round being played.

These are the following round types:

You can’t perform that action at this time.