Public Gists by godfat

Gravatar
Wed Sep 16 20:48:00 -0700 2009
1
2
3
#!/bin/sh
 
gem install rake
Gravatar
Tue Sep 15 09:59:44 -0700 2009
1
2
3
the intro of computer programming
淺談電腦程式
2009-09-15 till 2009-09-20
Gravatar
Mon Aug 17 03:11:54 -0700 2009
1
2
3
// https://scripting.dev.java.net/servlets/ProjectDocumentList
// javac JRuby.java
 
Gravatar
Sat Aug 15 04:16:08 -0700 2009
1
2
3
 
implicit def envToTreeMap(env: Env) = env.map
 
Gravatar
Thu Aug 06 03:00:31 -0700 2009
1
2
3
-- output 2
 
module TestHash where
Gravatar
Mon Jun 15 07:04:39 -0700 2009
1
2
3
// author:
// http://joshkos.blogspot.com/2009/06/blog-post_13.html
 
Gravatar
Mon May 25 20:12:14 -0700 2009
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-TW">
Gravatar
Wed Apr 01 05:02:45 -0700 2009
1
puts($stdin.read.split(/=/).reject{|a|a=="\n"}.map{|a|a=~/^[0-9A-Z]{2}/?[a[0..1],a[2..-1]]:a}.flatten.reject(&:empty?).map{|a|a=~/^[0-9A-Z]{2}$/?a.to_i(16):a.unpack('c*')}.flatten.pack('c*'))
Gravatar
Sat Mar 14 09:22:07 -0700 2009
1
2
3
{-
3
345
Gravatar
Fri Mar 13 02:47:18 -0700 2009
1
2
3
#include <iostream>
 
 
gist: 53367 object_pool.hpp.eruby
Gravatar
Tue Jan 27 06:49:08 -0800 2009
1
2
3
<% header_guard do %>
 
 
gist: 43742 Collection#destroy! and OFF...
Gravatar
Tue Jan 06 01:22:37 -0800 2009
1
2
3
# http://datamapper.lighthouseapp.com/projects/20609-datamapper/tickets/746-patch-raise-argumenterror-if-limitoffset-was-set-in-query-in-collectiondestroy
# it's surprising that Collection#destroy! doesn't use LIMIT/OFFSET
 
Gravatar
Thu Dec 11 00:06:34 -0800 2008
1
2
3
# http://github.com/rtomayko/rack-contrib/commit/f2169bd780c17b4bcc11aacf2d6c1eb6f35bdbee
 
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.8.7')
Gravatar
Thu Dec 04 01:53:27 -0800 2008
1
2
3
# http://rubinius.lighthouseapp.com/projects/5089/tickets/614-calling-a-class-method-on-an-object-s-metaclass-should-invoke-the-class-method-of-the-object-s-class#ticket-614-5
 
class Object
gist: 30606 Kernel and IncludedModule
Gravatar
Sun Nov 30 19:28:09 -0800 2008
1
2
3
# http://rubinius.lighthouseapp.com/projects/5089/tickets/729-kernel-and-includedmodule
 
module M