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 -w | |
if RUBY_VERSION.match(/(\d+).(\d+)/) && "#{$1}#{$2}".to_i < 19 then | |
puts "Must be using Ruby version >= 1.9" | |
exit(1) | |
end | |
GITIGNORE = <<IGNORE | |
# BMax ignores |
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 -wKu | |
last = "eelhovercraft" | |
list = ["Nilium", "plash", "blanko", "eelhovercraft"] - [last] | |
order = [] | |
order << list[rand(3)] | |
list.delete(order.last) | |
list << last |
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
function chainfunc(...) | |
local chain={...} | |
return function(...) | |
local first = true | |
local a,b,c,d,e,f | |
for i,v in ipairs(chain) do | |
if first then | |
result = {v(...)} | |
first = false | |
else |
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
--[[ | |
Copyright (c) 2009 Noel R. Cower | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
SuperStrict | |
_initCaseTables() | |
Function LowerString$(s$) | |
If Not g_LowerTable Then _initCaseTables() | |
Return _transformWithTable(s, g_LowerTable) | |
End Function | |
Function UpperString$(s$) |
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
-- constable.lua | |
function BuildConstantsTable(kvpairs) | |
local t_Const={} | |
for k,v in next,kvpairs,nil do | |
t_Const[k]=v | |
end | |
local consts = {} |
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: Safari [274] | |
Path: /Applications/Safari.app/Contents/MacOS/Safari | |
Identifier: com.apple.Safari | |
Version: 4.0.3 (6531.9) | |
Build Info: WebBrowser-65310900~1 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [170] | |
Date/Time: 2009-09-12 13:04:10.029 -0600 | |
OS Version: Mac OS X 10.6 (10A432) |
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
Strict | |
' Implements basic 2D drawing functionality (blending, textures, etc. handled elsewhere) | |
Type Render2D | |
Const RENDER2D_BUFFER_SIZE_BYTES:Int = 131072 '128kb | |
Field _vertbuffer:TBank, _vertstream:TBankStream | |
Field _texcoordbuffer:TBank, _texcoordstream:TBankStream | |
Field _colorbuffer:TBank, _colorstream:TBankStream | |
Field _index:Int = 0, _sets%=0 |
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
/* | |
Copyright (c) 2009 Noel R. Cower | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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
include dispatch/dispatch | |
import os/Time | |
TimeSpec: cover from struct timespec { | |
seconds: extern(tv_sec) TimeT | |
nanoseconds: extern(tv_nsec) Long | |
} | |
DispatchFunction: cover from Func(Pointer) | |
DispatchQueueAttr: cover from dispatch_queue_attr_t |