Skip to content

Instantly share code, notes, and snippets.

View vtypal's full-sized avatar

Vangelis Typaldos vtypal

View GitHub Profile
http://mikenaberezny.com/2008/04/28/parsing-quoted-strings-in-ruby/
http://henrik.nyh.se/2008/03/flickr-style-tag-splitting-in-ruby
Shellwords::shellwords('foo "bar baz" qux')
=> ["foo", "bar baz", "qux"]
@vtypal
vtypal / gist:149018
Created July 17, 2009 11:49
Innate::Request.current.env
require 'rubygems'
require 'innate'
class Demo
include Innate::Node
map '/'
provide :html, :engine => :Etanni, :type => 'text/html'
@@header =<<-HEADER
<?xml version="1.0" ?>
require 'rubygems'
require 'innate'
class Innatecookies
include Innate::Node
map '/'
provide :html, :engine => :Etanni, :type => 'text/html'
@@header =<<-HEADER
<?xml version="1.0" ?>