[ create a new paste ] login | about

sah

Name: Steven Hazel
Email:
Site/Blog: http://www.hackerdashery.com/
Location: San Francisco, CA
Default language: Python
Favorite languages: No comment.
About: I'm the creator of codepad.org, and co-founder of Sauce Labs Inc, http://saucelabs.com

Saved pastes by sah:

Ruby, pasted on Jun 25:
1
2
3
4
5
def let(*a)
  yield(*a)
end

let(Proc.new { |cc| puts ""; print "@"; cc }[callcc { |cc| cc }],
...
view (8 lines, 361 lines of output)
Ruby, pasted on Jun 25:
1
2
3
Proc.new { |yin, yang| yin[yang] }[
  Proc.new { |cc| puts ""; print "@"; cc }[callcc { |cc| cc }],
  Proc.new { |cc| print "*"; cc }[callcc { |cc| cc }]]
view (3 lines, 361 lines of output)
Python, pasted on Mar 2:
1
2
3
4
5
# -*- coding: utf-8 -*-

import codecs
import sys
sys.stdin = codecs.getreader('utf-8')(sys.stdin)
...
view (8 lines, 1 line of output)
Ruby, pasted on Jan 27:
1
2
3
4
5
class Catcher
  def self.catch
    yield
  end
end
...
view (21 lines, 2 lines of output)
Ruby, pasted on Jan 27:
1
2
3
4
class Whiler
  def initialize(&cond)
    @cond = cond
  end
...
view (18 lines, 3 lines of output)
Ruby, pasted on Jan 26:
1
2
3
4
5
class NoOp
  def self.elif(cond)
    NoOp
  end
  def self.else
...
view (52 lines, 3 lines of output)
Python, pasted on Jul 5:
1
2
3
4
5
import sys
import couchdb

# Problem occurs over 100 dbs
NUM_DBS = 101
...
view (31 lines)
Haskell, pasted on Jun 9:
1
2
3
4
5
meta f n 0 = 0
meta f n 1 = n
meta f n m = f n (meta f n (m-1))

wtf _ m = m + 1
...
view (12 lines, 1 line of output)
Plain Text, pasted on Mar 9:
1
2
3
4
5
# Two new keywords -- "doing" introduces a single unnamed block 
# as a parameter to a function after the normal parameters.
# "where" can be used multiple times to introduce unlimited
# blocks via named parameters.

...
view (33 lines)
Python, pasted on Apr 18:
1
2
3
4
5
# -*- coding: utf-8 -*-

import codecs
import sys
sys.stdout = codecs.getwriter('utf-8')(sys.stdout)
...
view (7 lines, 1 line of output)
Haskell, pasted on Apr 15:
1
2
3
4
5
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FunctionalDependencies 
  #-}

import Prelude hiding (($))
import qualified Prelude as P
...
view (20 lines, 1 line of output)
Python, pasted on Apr 15:
1
2
3
4
5
# -*- coding: utf-8 -*-

import codecs
import sys
sys.stdin = codecs.getreader('utf-8')(sys.stdin)
...
view (8 lines, 1 line of output)
Python, pasted on Mar 28:
1
print [(x,y) for x in [[1],[2],[3]] for y in x]
view (1 line, 2 lines of output, 1 comment)