Skip to content

Instantly share code, notes, and snippets.

View wookiehangover's full-sized avatar
💭
just setting up my gthb...

Sam Breed wookiehangover

💭
just setting up my gthb...
View GitHub Profile
@wookiehangover
wookiehangover / cookies.md
Created December 22, 2014 22:00
Sprintly Cookies

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 August 29, 2015 14:11
tv code review – part 1

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

@wookiehangover
wookiehangover / keybase.md
Created October 30, 2014 05:56
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 February 20, 2017 18:26
Dropbox Design Guidelines
  • 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 August 29, 2015 14:05
Motherbrain Rounds and Question Schema

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:

@wookiehangover
wookiehangover / gist:7c2d385e6cb0fcdf87b2
Created August 21, 2014 21:31
GWD Motherbrain Round Data
[
{
"notes": "Just name it.",
"roundNumber": null,
"roundTitle": "Four-Letter Words",
"roundType": "Theme Round",
"round_id": 11628,
"state": "Imported",
"user_id": 30,
"virtual_round_eight": null
var _ = require('underscore');
var $ = require('jquery');
var ReqMgr = function() {};
ReqMgr.prototype.ajax = function(options){
options = _.defaults(options || {}, {
// default options hurr
})
return $.ajax(options)
}
sam@daedalus: ~/dev/sprintly/sprint.ly ± [master] ✖
∴ ./snowbird/manage.py test functional 06/11/14 - 16:10:19
Tracelytics Oboe warning: module not built on a platform with liboboe and liboboe-dev installed, running in no-op mode. Tracing disabled. Contact traceviewsupport@appneta.com if this is unexpected.
[2014-06-11 22:10:29,895] ERROR oboe - Tracelytics Oboe warning: module not built on a platform with liboboe and liboboe-dev installed, running in no-op mode. Tracing disabled. Contact traceviewsupport@appneta.com if this is unexpected.
RUM initialization: couldn't read /etc/tracelytics.conf (No such file or directory). RUM will be disabled unless oboe.config['access_key'] is set.
[2014-06-11 22:10:29,896] WARNING oboe - RUM initialization: couldn't read /etc/tracelytics.conf (No such file or directory). RUM will be disabled unless oboe.config['access_key'] is set.
Creating test datab
  • why nest another package.json / node_modules dir in test?

    • should use devDependencies and NODE_ENV=production to avoid loading tests
  • test/test/mocha.opts could probably just be in test/mocha.opts

  • forking the server and forwarding args might not be needed

    • as does the need for a Q deferred
    • exporting the server and starting / stopping in the same proc as part of the test run should be fine
  • before / after can both take done args, be async

  • as called out by the comment in test_classifier, there's some really nasty stuff going on because of this

@wookiehangover
wookiehangover / svg-header.js
Created April 25, 2014 17:08
QL.com SVG header
//= require snap.svg-min
(function(){
var defaultCoordMultiplier = 50;
var shapeSpacingMultiplier = .45;
var tilt = 3;
var height = 8;
var width = 4;
var origin = { x: 0, y: 0 };