Skip to content

Instantly share code, notes, and snippets.

View nilium's full-sized avatar
🍉
internal screaming intensifies

Noel nilium

🍉
internal screaming intensifies
View GitHub Profile
#!/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
#!/usr/bin/env ruby -wKu
last = "eelhovercraft"
list = ["Nilium", "plash", "blanko", "eelhovercraft"] - [last]
order = []
order << list[rand(3)]
list.delete(order.last)
list << last
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
--[[
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:
SuperStrict
_initCaseTables()
Function LowerString$(s$)
If Not g_LowerTable Then _initCaseTables()
Return _transformWithTable(s, g_LowerTable)
End Function
Function UpperString$(s$)
-- constable.lua
function BuildConstantsTable(kvpairs)
local t_Const={}
for k,v in next,kvpairs,nil do
t_Const[k]=v
end
local consts = {}
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)
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
/*
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:
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