This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def create_taxi_parts(direction) | |
taxi_parts = { | |
TaxiHood => 'taxi_hood', | |
TaxiBlower => 'taxi_blower', | |
TaxiMidsection => 'taxi_midsection', | |
TaxiTail => 'taxi_tail', | |
TaxiRearsection => 'taxi_rearsection', | |
TaxiThruster => 'taxi_thruster', | |
TaxiRightThruster => 'taxi_right_thruster', | |
TaxiRearThruster => 'taxi_rear_thruster' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
filename = '/Users/sanderson/tmp/foo.txt' | |
class FileRat | |
def self.rat_tail(filename) | |
file = File.open filename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sanderson@shiny-3:~/Desktop/Arthurs$ ruby arthur125.rb | |
Loading Tileset Started | |
Loading Tileset Done | |
Loading Maps Started | |
Loading Sprites Started | |
Loading Sprites Done | |
Loading Sprites Started | |
Loading Sprites Done | |
Loading Sprites Started | |
Loading Sprites Done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: ruby [15947] | |
Path: /usr/local/bin/ruby | |
Identifier: ruby | |
Version: ??? (???) | |
Code Type: X86 (Native) | |
Parent Process: bash [15927] | |
Interval Since Last Report: 117224 sec | |
Crashes Since Last Report: 11 | |
Per-App Interval Since Last Report: 0 sec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% cumulative self self total | |
time seconds seconds calls ms/call ms/call name | |
43.99 470.20 470.20 10566733 0.04 0.06 Kernel.=== | |
36.80 863.59 393.39 716 549.43 2951.19 Array#initialize | |
17.32 1048.72 185.13 10548267 0.02 0.02 String#== | |
0.44 1053.38 4.66 212294 0.02 0.02 String#[] | |
0.36 1057.25 3.87 212227 0.02 0.02 Array#[] | |
0.21 1059.53 2.28 1434 1.59 10.26 Array#each | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def load_tile_set(actor, action) | |
actor_dir = Inflector.underscore(actor.class) | |
tileset = load_image "#{actor_dir}/#{action}.png" | |
action_imgs = [] | |
w,h = *tileset.size | |
if h > w | |
# down | |
num_frames = h/w |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sanderson@shiny-3:~/code/eruta/src$ rsdl -rubygems main.rb | |
Loaded Tilemap | |
2009-08-21 15:27:31.656 rsdl[5230:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. | |
[] | |
"/Users/sanderson/code/eruta/src" | |
./sisa/font.rb:263: uninitialized constant DL::Importer (NameError) | |
from ./zori/style.rb:72:in `initialize' | |
from ./zori/hanao.rb:261:in `new' | |
from ./zori/hanao.rb:261:in `initialize' | |
from ./zori/hanao.rb:245:in `new' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sanderson@shiny-3:~/code/eruta/src$ rsdl main.rb | |
Loaded Tilemap | |
2009-08-21 15:31:27.261 rsdl[5461:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz. | |
/Users/sanderson/code/eruta/src/sisa/screenmixin.rb:54: [BUG] unknown type 0x22 (0xc given) | |
ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0] | |
-- control frame ---------- | |
c:0007 p:---- s:0086 b:0086 l:000085 d:000085 CFUNC :open | |
c:0006 p:0285 s:0079 b:0079 l:000078 d:000078 METHOD /Users/sanderson/code/eruta/src/sisa/screenmixin.rb:54 | |
c:0005 p:0027 s:0067 b:0067 l:000066 d:000066 METHOD main.rb:65 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sanderson@shiny-3:~/code/shoes$ ./use-deps | |
sanderson@shiny-3:~/code/shoes$ rake | |
(in /Users/sanderson/code/shoes) | |
rm -rf dist | |
mkdir -p dist | |
gcc -I. -c -oshoes/app.o -Wall -I/usr/include -DXTHREADS -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng12 -I/usr/X11R6/include -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/usr/local/lib/ruby/1.8/i686-darwin9.7.0 -O -DSHOES_QUARTZ -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -fpascal-strings -g -O2 -fno-common -pipe -fno-common -x objective-c -fobjc-exceptions shoes/app.c | |
In file included from ./shoes/app.h:14, | |
from shoes/app.c:6: | |
/usr/local/lib/ruby/1.8/i686-darwin9.7.0/ruby.h:519: warning: function declaration isn’t a prototype | |
/usr/local/lib/ruby/1.8/i686-darwin9.7.0/ruby.h:519: warning: function declaration isn’t a prototype |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
P4_EDMUNDS = "/Users/sanderson/use_the_force/edmunds" | |
project_dirs = ARGV | |
project_dirs = %w| sites services libraries | if project_dirs.empty? | |
out = $stdout | |
Dir.chdir P4_EDMUNDS |