Public Gists by mattetti

Gravatar
Wed Nov 11 17:18:55 -0800 2009
1
2
3
# We are storing the game config in a ruby file
# so we can compile it and avoid people hacking the game ;)
module GameConfig
Gravatar
Mon Nov 09 12:06:23 -0800 2009
1
2
3
$ irb1.9
irb(main):001:0> class Foo; end
=> nil
Gravatar
Fri Nov 06 21:59:19 -0800 2009
1
2
3
From 6cfd58aa74c0c705d25e33113f847af1bfc2d207 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Jos=C3=A9=20Valim?= <jose.valim@gmail.com>
Date: Fri, 6 Nov 2009 23:28:58 -0200
Gravatar
Fri Nov 06 18:44:35 -0800 2009
1
2
3
$ rails abc --skip-testunit --skip-prototype --skip-activerecord
      create
      create Rakefile
Gravatar
Thu Nov 05 11:05:15 -0800 2009
1
2
3
$ make
bison -d -o parser.cpp parser.y
parser.y: conflicts: 24 shift/reduce
Gravatar
Thu Oct 22 13:15:41 -0700 2009
1
2
3
/*
* Format for Selenium Remote Control RSpec client.
*/
Gravatar
Tue Oct 20 08:27:09 -0700 2009
1
2
3
#!/usr/bin/env macruby
#--
# set.rb - defines the Set class
Gravatar
Fri Oct 09 21:10:55 -0700 2009
1
2
3
Game Over
Program received signal: “EXC_BAD_ACCESS”.
sharedlibrary apply-load-rules all
Gravatar
Fri Oct 02 10:21:20 -0700 2009
1
2
3
<div class="foot_links">
<div style="float: left;"><a href="/privacy/"><script type="text/javascript">od_displayImage('Privacy Policy', '/i/btn/btn_privacy.png', 161, 22,'png_click', 'Privacy Policy', 'Privacy Policy');</script><img src="/i/btn/btn_privacy.png" name="Privacy Policy" class="png_click" alt="Privacy Policy" title="Privacy Policy" width="161" border="0" height="22"></a></div> <div style="float: right;"><a href="/terms/"><script type="text/javascript">od_displayImage('Terms & Conditions', '/i/btn/btn_terms.png', 219, 23,'png_click','Terms & Conditions','Terms & Conditions');</script><img src="/i/btn/btn_terms.png" name="Terms &amp; Conditions" class="png_click" alt="Terms &amp; Conditions" title="Terms &amp; Conditions" width="219" border="0" height="23"></a></div> <br clear="all"><br>
 
Gravatar
Wed Sep 30 16:48:39 -0700 2009
1
2
3
ld: warning: in vm/assembler/libudis86.a, file is not of required architecture
Undefined symbols:
  "_ud_set_input_buffer", referenced from:
Gravatar
Mon Sep 28 11:18:28 -0700 2009
1
2
3
require 'erb'
require 'benchmark'
 
Gravatar
Sat Sep 26 20:49:36 -0700 2009
1
2
3
defining +[Module new] with imp 0x10006d110/0x10006d110 types @@: flags 8
defining +[Module new:] with imp 0x10006d110/0x10006d110 types @@ flags 8
defining +[Module __new__] with imp 0x10006d110/0x10006d110 types flags 8
Gravatar
Sat Sep 26 20:46:37 -0700 2009
1
2
3
$ DYLD_LIBRARY_PATH=. ./macruby /Users/mattetti/src/darwiin-remote/WiiRemoteFramework/trunk/build/Release/wii.rb
defining +[Module new] with imp 0x10006d110/0x10006d110 types @@: flags 8
defining +[Module new:] with imp 0x10006d110/0x10006d110 types @@ flags 8
Gravatar
Sat Sep 26 13:06:00 -0700 2009
1
2
3
lrz$ rake
(in /Users/lrz/src/macruby-gitsvn/trunk)
/usr/bin/ruby tool/compile_prelude.rb prelude.rb miniprelude.c.new
Gravatar
Wed Sep 23 16:35:51 -0700 2009
1
2
3
require 'rest_client'
require 'json'
 
Gravatar
Tue Sep 22 17:48:20 -0700 2009
1
2
3
# For this experiment you need to have 2 instances of couchdb 0.10
# one running on port 5984 and one on port 5983
require 'rubygems'
Gravatar
Tue Sep 22 14:47:39 -0700 2009
1
2
3
+ '[' Darwin = Darwin ']'
+ couchdb_link_erl_driver
+ cd src/couchdb
Gravatar
Mon Sep 21 22:02:09 -0700 2009
1
2
3
# Some default enhancements/settings for IRB, based on
# http://wiki.rubygarden.org/Ruby/page/show/Irb/TipsAndTricks
 
Gravatar
Fri Sep 18 13:53:16 -0700 2009
1
2
3
  def summer_monthly_usage
    @summer_monthly_usage ||= rates.summer_months_nbr.inject(0) { |sum, m| sum + monthly_usage[m - 1] }
  end
Gravatar
Wed Sep 16 18:24:02 -0700 2009
1
2
3
require 'rubygems'
require 'couchrest'
require 'json'