Skip to content

Instantly share code, notes, and snippets.

@mwanji
mwanji / tent_blog_proposal
Created October 5, 2012 09:27
Tent Blogging App Proposal
Two parts: Viewer and Publisher
Viewer
GET /posts of type Essay (https://tent.io/types/post/essay/v0.1.0)
Is notified when a new Essay is POSTed
Displays them as a blog
Publisher
@andkerosine
andkerosine / raskell.rb
Created August 15, 2012 05:56
Haskell-like list comprehensions in Ruby
$stack, $draws = [], {}
def method_missing *args
return if args[0][/^to_/]
$stack << args.map { |a| a or $stack.pop }
$draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :<
end
class Array
def +@