Skip to content

Instantly share code, notes, and snippets.

View sunfmin's full-sized avatar

Felix Sun sunfmin

View GitHub Profile
require 'rubygems'
require 'dm-core'
DataMapper.setup(:default, 'sqlite3::memory:')
class Dummy
include DataMapper::Resource
property :id, Serial
property :name, String
end
@sunfmin
sunfmin / irc
Created September 26, 2008 08:17 — forked from anatole/irc
[asics@gmg6p9ab ~/src/do/do_mysql]$ rake install
(in /home/asics/src/do/do_mysql)
Building native extensions. This could take a while...
ERROR: Error installing pkg/do_mysql-0.9.6:
ERROR: Failed to build gem native extension.
/opt/local/bin/ruby18 extconf.rb install --local pkg/do_mysql-0.9.6 --no-update-sources
checking for mysql.h... yes
checking for main() in -lmysqlclient... yes
checking for mysql_query()... yes
@sunfmin
sunfmin / gist:11539
Created September 19, 2008 04:44 — forked from schacon/gist:1
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.