Public Gists by genki

Gravatar
Thu Aug 13 23:17:27 -0700 2009
1
2
3
# -*- coding: utf-8 -*-
    
module Termtter
Gravatar
Fri Jul 24 10:38:25 -0700 2009
1
2
3
module Sinatra
  module TagHelper
    def tag(name, contents = nil, attrs = {}, &block)
Gravatar
Thu Jul 23 01:06:58 -0700 2009
1
2
3
abstract (1.0.0)
actionmailer (2.3.2, 2.2.2, 2.1.0, 2.0.2)
actionpack (2.3.2, 2.2.2, 2.1.0, 2.0.2)
Gravatar
Thu Jul 16 09:17:43 -0700 2009
1
2
3
def git(uri, sha1, options = {})
  require "tmpdir"
  basename = File.basename(uri)
Gravatar
Thu Jul 16 08:53:30 -0700 2009
1
2
3
module Gist
module_function
  def require(id, sha1 = "HEAD")
Gravatar
Thu Jul 16 08:37:17 -0700 2009
1
puts "Hello, world!"
Gravatar
Thu Jul 16 08:32:21 -0700 2009
1
2
3
module Git
module_function
  def require(name, sha1 = "HEAD")
Gravatar
Tue Jul 14 11:39:36 -0700 2009
1
2
3
def require_el(path)
  result = []
  indents = [0]
Gravatar
Tue Jul 14 07:01:11 -0700 2009
1
2
3
require "rubygems"
require "sinatra"
require "dm-core"
Gravatar
Fri Jul 03 07:47:20 -0700 2009
1
2
3
pt = PropertyTranslator.new(Item)
scope = pt.translate("name") # => "Item.name"
 
Gravatar
Fri Jun 26 06:50:57 -0700 2009
1
2
3
class Foo
  foo = puts "foo"
 
Gravatar
Thu Jun 18 09:55:42 -0700 2009
1
2
3
/*
* s21g GoogleDocs Outliner
*
Gravatar
Sun Jun 07 08:32:57 -0700 2009
1
2
3
 ~ (1) SELECT "id", "digest", "fetched_at", "created_at", "site_id" FROM "pages"
 WHERE ("site_id" IN (1)) ORDER BY "id" ~ ERROR: syntax error at or near "("
merb : worker (port 4000) ~ ERROR: syntax error at or near "(" - (PostgresError)
Gravatar
Fri May 15 02:28:27 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
class Formatter
Gravatar
Fri May 15 02:28:25 -0700 2009
1
2
3
#!/usr/bin/env ruby
 
class Formatter
Gravatar
Thu May 14 01:19:31 -0700 2009
1
2
3
  module Errorifier
    def error_messages_for(obj, error_class, build_li, header, before)
      obj ||= @obj
Gravatar
Fri May 08 01:32:54 -0700 2009
1
2
3
module DataMapper
  module Adapters
    class DataObjectsAdapter < AbstractAdapter
Gravatar
Wed Apr 22 22:57:49 -0700 2009
1
2
3
//
// RootViewController.m
// Icons
Gravatar
Mon Apr 20 08:05:58 -0700 2009
1
2
3
module DataMapper
  module Types
    class Currency < DataMapper::Type
Gravatar
Tue Apr 14 12:38:35 -0700 2009
1
2
3
if File.directory?(gems_dir = File.join(root, "gems")) && !$BUNDLE
  $BUNDLE = true; Gem.clear_paths; Gem.path.unshift(gems_dir)
  # Warn if local merb-core is available but not loaded.