various implementations of FizzBuzz as a Service.
a 'natural number' is a member of the set of positive integers {1, 2, 3, …}
<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> |
/**********************************************/ | |
/* | |
/* 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/ | |
/* |
{-# 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 = [] | |
I've included a few solo artists (Jackson, Young) who started off their best work in a group. Years are release date.
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 |
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 |