Skip to content

Instantly share code, notes, and snippets.

View aschoerk's full-sized avatar

Andreas Schörk aschoerk

  • Germany
  • Karlsruhe
View GitHub Profile
@aschoerk
aschoerk / cgitester.rb
Created May 23, 2012 15:24
Allows to debug a cgi script in ruby with minimal effort inside an IDE.
#!/usr/bin/env ruby
$:.unshift File.join(File.dirname(__FILE__),'.','')
require 'webrick'
require 'cgi'
require 'stringio'
$cgi_input = nil
class CGI
def stdoutput
@aschoerk
aschoerk / index.txt
Created May 12, 2012 10:42 — forked from gus/index.txt
Ruby/Clojure analogs
For each Ruby module/class, we have Ruby methods on the left and the equivalent
Clojure functions and/or relevant notes are on the right.
For clojure functions, symbols indicate existing method definitions, in the
clojure namespace if none is explicitly given. clojure.contrib.*/* functions can
be obtained from http://github.com/kevinoneill/clojure-contrib/tree/master,
ruby-to-clojure.*/* functions can be obtained from the source files in this
gist.
If no method symbol is given, we use the following notation: