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
andrew@andrew-laptop:~/RubyPG$ ruby test/unit/battle_test.rb | |
Loaded suite test/unit/battle_test | |
Started | |
player turn | |
[["Attack", 1]] | |
[["snail", 2]] | |
player uses Attack on snail | |
Damage: health -1 | |
enemy turn | |
[["Spit", 3], ["Attack", 4]] |
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
andrew@andrew-laptop:~/RubyPG$ ruby test/unit/skill_effect_test.rb | |
*** Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`. | |
*** Mocha deprecation warning: Test::Unit or MiniTest must be loaded *before* Mocha. | |
*** Mocha deprecation warning: If you're integrating with a test library other than Test::Unit or MiniTest, you should use `require 'mocha/api'` instead of `require 'mocha'`. |
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
user: bizzlejawline | |
source: <a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a> | |
country: United Kingdom | |
place: Guildford | |
lat: 51.25120404 | |
long: -0.57254453 | |
[bizzlejawline] @justinbieber how r u today ? |
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
if x | |
... | |
elsif y | |
... | |
else | |
puts "You screwed up." | |
end |
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
pdlua.c:244:16: warning: unused parameter ‘L’ [-Wunused-parameter] | |
lua_State *L, /**< Lua interpreter state. */ | |
^ | |
pdlua.c: In function ‘pdlua_popatomtable’: | |
pdlua.c:1059:9: warning: implicit declaration of function ‘lua_objlen’ [-Wimplicit-function-declaration] | |
*count = lua_objlen(L, -1); | |
^ | |
pdlua.c: In function ‘pdlua_dofile’: | |
pdlua.c:1558:17: error: too few arguments to function ‘lua_load’ | |
if (lua_load(L, pdlua_reader, &reader, 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
make -C /home/biorails/Downloads/pd-extended/externals/loaders/pdlua/src PD_PATH=/home/biorails/Downloads/pd-extended/pd CFLAGS="-DPD -DHAVE_G_CANVAS_H -DZEXY_LIBRARY -I/home/biorails/Downloads/pd-extended/pd/src -Wall -W -ggdb -I/home/biorails/Downloads/pd-extended/externals/Gem -I/home/biorails/Downloads/pd-extended/externals/pdp/include -DUNIX -Dunix -DDL_OPEN -fPIC" | |
make[3]: Entering directory `/home/biorails/Downloads/pd-extended/externals/loaders/pdlua/src' | |
compiling pdlua version 0.6 | |
cflags are -DPD -DHAVE_G_CANVAS_H -DZEXY_LIBRARY -I/home/biorails/Downloads/pd-extended/pd/src -Wall -W -ggdb -I/home/biorails/Downloads/pd-extended/externals/Gem -I/home/biorails/Downloads/pd-extended/externals/pdp/include -DUNIX -Dunix -DDL_OPEN -fPIC | |
optcflags are -O3 -funroll-loops -march=k8 -msse -msse2 -msse3 -mfpmath=sse -ftree-vectorize -ftree-vectorizer-verbose=1 | |
luacflags are -DVERSION='0.6' -I/usr/include/lua | |
ldflags are -Wl,--export-dynamic -shared -fPIC | |
libs are -llua -lc | |
cc -DPD -DHAVE_G_CANVAS_H -DZEXY_ |
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
i = 0 | |
r = 0.0 | |
g = 255.0 | |
101.times do | |
puts <<-TEXT | |
.heat-map-#{i} { |
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
ajfaraday@scaled-up:/opt/scaled_up$ pd-extended -open pd/test-tones.pd -alsa -listdev -nogui | |
audio input devices: | |
1. HDA NVidia (hardware) | |
2. HDA NVidia (plug-in) | |
audio output devices: | |
1. HDA NVidia (hardware) | |
2. HDA NVidia (plug-in) | |
API number 1 | |
no midi input devices found |
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
order_table = Order.arel_table | |
arel = Order.where(order_table[:id].not_in([])) | |
sql = arel.to_sql | |
puts sql | |
#=> SELECT "ORDERS".* FROM "ORDERS" WHERE ("ORDERS"."ID" NOT IN (NULL)) |
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 test_method | |
@var = 'a' | |
else | |
@var = 'b' | |
end | |
test_method | |
@var #=> 'b' |