Skip to content

Instantly share code, notes, and snippets.

View OscarGodson's full-sized avatar
:shipit:
Workin'

Oscar Godson OscarGodson

:shipit:
Workin'
  • CTO
  • Portland, OR
  • 01:46 (UTC -07:00)
View GitHub Profile
Sign Up
Splash Page
click sign up -> Phone Number Page
click log in -> Login Page
Phone Number Page
back -> Splash Page
Phone Number Input Active*
typed -> Phone Number Input Entry
@OscarGodson
OscarGodson / netflix_categories.json
Last active August 29, 2015 14:11
An ongoing list of all the netflix categories. These are generated with JS
{
"1":"African-American Crime Documentaries",
"2":"Scary Cult Movies from the 1980s",
"4":"Tearjerkers from the 1970s",
"5":"Gay & Lesbian Psychological Movies",
"7":"Showbiz Movies based on real life",
"10":"Movies starring Pradeep Kumar",
"11":"Military Dramas",
"15":"Suspenseful British Independent Movies",
"16":"Understated Biographical Documentaries",
#!/usr/bin/env node
var fs = require('fs');
var glob = require("glob");
var browserify = require('browserify');
var watchify = require('watchify');
var watch = require('watch');
var exec = require('child_process').exec;
var manifestFilePath = './spec/built/manifest.js';
var Foo = require('../foo/index.js');
var someClass = new SomeClass({
someMethod: function () {
// How do I stub this without requiring it to be set on the prototype?
// ex: w/o having it set on someClass.baz = Foo.bar();
var baz = Foo.bar();
if (baz == 'hello') {
return 1
}

My fave "not corny" horror films

Bedevilled

My all time favorite revenge horror, and one of my all time favorite movies in general.

Netflix

def sum(a, b): return a + b
def stringSum(s):
numArray = list(str(s))
return reduce(sum, map(lambda s: int(s), numArray))
print stringSum(2**1000)
function clone(obj) {
// Handle the 3 simple types, and null or undefined
if (null == obj || "object" != typeof obj) return obj;
// Handle Date
if (obj instanceof Date) {
var copy = new Date();
copy.setTime(obj.getTime());
return copy;
}

Apps that aren't included that I suggest checking out and ones I use all the time. Ones with * I use all day.

  • iTerm2 *
  • Twitter for Mac *
  • Spotify *
  • Alfred *
  • Caffiene
  • Monosnap
  • Flux (F.lux)
  • OneNote
@OscarGodson
OscarGodson / README.md
Created December 31, 2013 20:09
Window swapping in vim

To use (assuming your mapleader is set to ) you would:

  1. Move to the window to mark for the swap via ctrl-w movement
  2. Type \mw
  3. Move to the window you want to swap
  4. Type \pw
$('parent').addEvent('click:relay(#child)', function () {
alert('test');
});
$('parent').fireEvent('click', { target: $('child') });