Skip to content

Instantly share code, notes, and snippets.

View tomjakubowski's full-sized avatar

Tom Jakubowski tomjakubowski

View GitHub Profile
<team>
<team_key>257.l.197952.t.1</team_key>
<team_id>1</team_id>
<name>Injured Reserve</name>
<url>http://football.fantasysports.yahoo.com/f1/197952/1</url>
<team_logos>
<team_logo>
<size>medium</size>
<url>http://l.yimg.com/a/i/us/sp/fn/default/full/nfl/icon_04_48.gif</url>
</team_logo>
@tomjakubowski
tomjakubowski / Custom.css
Created January 23, 2012 10:56 — forked from bentruyman/Custom.css
IR_Black Theme for Chrome Developer Tools
/**********************************************/
/*
/* IR_Black Skin by Ben Truyman - 2011
/*
/* Based on Todd Werth's IR_Black:
/* http://blog.toddwerth.com/entries/2
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*

FizzBuzz as a Service (FBaaS)

various implementations of FizzBuzz as a Service.

specification

a 'natural number' is a member of the set of positive integers {1, 2, 3, …}

response

@tomjakubowski
tomjakubowski / hello.hs
Created November 20, 2012 03:33
hello world fay example
{-# LANGUAGE NoImplicitPrelude #-}
module Hello where
import Language.Fay.Prelude
import Language.Fay.FFI
print :: String -> Fay ()
print = ffi "console.log(%1)"
motifs :: Int -> [a] -> [[a]]
motifs _ [] = []
motifs n s@(b:bs)
| (length s >= n) = (take n s):(motifs n bs)
| otherwise = []
@tomjakubowski
tomjakubowski / gist:4325384
Created December 18, 2012 05:48
Noted exceptions to John's Law of 10 Years

Noted exceptions to John's Law of 10 Years

I've included a few solo artists (Jackson, Young) who started off their best work in a group. Years are release date.

  • Michael Jackson: ABC (1970)—Dangerous (1991)
  • Wilco: Being There (1996)—The Whole Love (2011)
  • Dinosaur Jr.: You're Living All Over Me (1987)—Farm (2009)
  • Neil Young: Buffalo Springfield Again (1967)—Rust Never Sleeps (1979)
import time
def repeat(delay=0.5):
def repeat_decorator(fn):
def wrapped(*args):
while True:
time.sleep(delay)
fn(*args)
return wrapped
return repeat_decorator
user=> [1 2 3]
[1 2 3]
user=> (->> [1 2 3] (map #(+ % 1)))
(2 3 4)
user=> (->> [1 2 3] (map #(+ % 1)) (filter #(> % 2)))
(3 4)
user=> (->> [1 2 3] (map #(+ % 1)) (filter #(> % 2)) (apply +))
7
@tomjakubowski
tomjakubowski / data.tsv
Last active December 13, 2015 18:58 — forked from mbostock/.block
date weight
06-26-12 1.06
07-05-12 1.56
09-11-12 4.75
11-30-12 7.38
12-01-12 7.31
12-12-12 7.56
filetype plugin indent on
set nocompatible
set cindent
set smartindent
set autoindent
set backspace=indent,eol,start
set ruler
set showcmd
set incsearch