Skip to content

Instantly share code, notes, and snippets.

View BenLubar's full-sized avatar

Ben Lubar BenLubar

View GitHub Profile
[SLAB:0] "The secrets of life and death"
quartzite
1542
34 00 00 00 06 00
[BOOK:1] "The World Without the Hamlet"
plume agate
1507
@BenLubar
BenLubar / mountain.txt
Created February 1, 2014 20:31
unparsed entity data
0000000: 0004 0100 0000 0601 0000 0000 0100 0000 ................
0000010: 6700 0100 0000 2e00 0100 0000 0000 0000 g...............
0000020: 0300 0100 0000 1900 0100 0000 0000 0100 ................
0000030: 0000 01ff ffff ffff ffff ffff ffff ffff ................
0000040: ffff ffff ffff ffff 1000 0000 0000 0100 ................
0000050: 0000 1c00 0100 0000 0100 0100 0000 01ff ................
0000060: ffff 0000 0000 db00 ffff 0400 ffff ffff ................
0000070: ffff ffff 1000 0000 0000 0000 0000 0000 ................
0000080: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000090: 0000 0000 0000 0000 0000 0000 0000 0000 ................
@BenLubar
BenLubar / Q.tsv
Last active August 29, 2015 13:55
the vaules for entity[Q*] in tab separated values format
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 126 columns, instead of 23. in line 3.
256 1 0 260 0 256 1 0 78 1 0 86 0 0 0 0 -1 -1 -1 1000 0 -1 -1 -1 -1 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3328 256 256 256 256 3840 0 256 3840 3840 0 0 0 0 0 512 3840 3840 3840 3840 3840 3840 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -256 -1 255 0 -256 -1 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 0 262 0 256 1 0 98 1 0 50 0 0 0 0 -1 -1 -1 0 0 -1 -1 -1 -1 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3328 256 256 256 256 3840 0 256 3840 3840 0 0 0 0 0 512 3840 3840 3840 3840 3840 3840 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -256 -1 255 0 -256 -1 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
256 1 0 257 0 256 1 0 78 1 0 29 0 0 0 0 -1 -1 -1 20 0 -1 -1 -1 -1 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3328 256 256 256 256 3840 0 256 3840 3840 0 0 0 0 0 512 3840 3840 3840 3840 3840 3840 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -256 -1 255 0 -256 -1 255 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1280 1 0 260 0 256 1 0 75 1 0 31 0 0 0 0 -1 -1 -1 -1 0 -1 -
require 'json'
stats = {}
map = ""
Dir['logs/*.log'].sort.each do |fn|
open fn do |f|
cvars = false
bomb_planted = false
@BenLubar
BenLubar / gist:9158673
Created February 22, 2014 17:36
species generator output
Body:
Upper:
Head:
Eye:
Eye:
Head:
Eye:
@BenLubar
BenLubar / species.txt
Last active August 29, 2015 13:56
species generator output
It is huge with beige rough leathery skin. Its upper body is quite short and
very narrow. Its head is long and very wide. It has a extremely short, quite
wide mouth containing two gigantic tusks, three miniscule molars, five large
tusks, three small tusks, two tiny tusks, six large fangs, three tiny tusks,
and seven huge fangs. It has five quite short, quite wide wing-limbs, each with
no joints. Its lower body is long and narrow. It has four long, wide tails.
--------------------------------------------------------------------------------
It is small with maroon vapor-like skin. Its upper body is long and narrow. Its
@BenLubar
BenLubar / .gitignore
Last active August 29, 2015 13:57
lojban irc log parser/glosser
irclogs.zip
all_logs.txt
logs_translated.txt
logs_untranslated.txt
@BenLubar
BenLubar / credit_card.rb
Created April 11, 2014 05:07
This program prints your credit card number, followed by a newline. There may be some other output as well.
def credit_card k, n
a = [0] * k * n
d = lambda do |t, p|
if t > n
if n % p == 0
for j in 1..(p + 1)
yield a[j]
end
end
else
ackermann :: Integer -> Integer -> Integer
ackermann 0 n = n+1
ackermann m 0 = ackermann (m-1) 1
ackermann m n = ackermann (m-1) (ackermann m (n-1))
up :: Integer -> Integer -> Integer -> Integer
up a b 0 = a*b
up a b 1 = a^b
up _ 0 _ = 1
up a b n = up a (up a (b-1) n) (n-1)