Skip to content

Instantly share code, notes, and snippets.

public LibgdxTussleMain(KeyboardController[] ctrl)
{
controllers = ctrl;
inputs = new InputMultiplexer();
for (KeyboardController g : ctrl)
{
inputs.addProcessor(g);
}
public void draw(Batch batch, float parentAlpha)
{
//debugDrawer is an instance of shapeRenderer, and is already initialized by this point
debugDrawer.begin();
debugDrawer.polygon(collisionBox.getTransformedVertices());
sprite.setOriginCenter();
sprite.setFlip(facing < 0, false);
sprite.setRotation(angle);
1
天地玄黃,宇宙洪荒。
日月盈昃,辰宿列張。
寒來暑往,秋收冬藏。
閏餘成歲,律呂調陽。
雲騰致雨,露結為霜。
金生麗水,玉出崑岡。
劍號巨闕,珠稱夜光。
果珍李柰,菜重芥姜。
海咸河淡,鱗潛羽翔。
00000000 31 0a e5 a4 a9 e5 9c b0 e7 8e 84 e9 bb 83 ef bc |1...............|
00000010 8c e5 ae 87 e5 ae 99 e6 b4 aa e8 8d 92 e3 80 82 |................|
00000020 20 0a e6 97 a5 e6 9c 88 e7 9b 88 e6 98 83 ef bc | ...............|
00000030 8c e8 be b0 e5 ae bf e5 88 97 e5 bc b5 e3 80 82 |................|
00000040 20 0a e5 af 92 e4 be 86 e6 9a 91 e5 be 80 ef bc | ...............|
00000050 8c e7 a7 8b e6 94 b6 e5 86 ac e8 97 8f e3 80 82 |................|
00000060 20 0a e9 96 8f e9 a4 98 e6 88 90 e6 ad b2 ef bc | ...............|
00000070 8c e5 be 8b e5 91 82 e8 aa bf e9 99 bd e3 80 82 |................|
00000080 20 0a e9 9b b2 e9 a8 b0 e8 87 b4 e9 9b a8 ef bc | ...............|
00000090 8c e9 9c b2 e7 b5 90 e7 82 ba e9 9c 9c e3 80 82 |................|
00000000 ff fe 31 00 0a 00 29 59 30 57 84 73 c3 9e 0c ff |..1...)Y0W.s....|
00000010 87 5b 99 5b 2a 6d 52 83 02 30 20 00 0a 00 e5 65 |.[.[*mR..0 ....e|
00000020 08 67 c8 76 03 66 0c ff b0 8f bf 5b 17 52 35 5f |.g.v.f.....[.R5_|
00000030 02 30 20 00 0a 00 d2 5b 86 4f 91 66 80 5f 0c ff |.0 ....[.O.f._..|
00000040 cb 79 36 65 ac 51 cf 85 02 30 20 00 0a 00 8f 95 |.y6e.Q...0 .....|
00000050 18 99 10 62 72 6b 0c ff 8b 5f 42 54 bf 8a 7d 96 |...brk..._BT..}.|
00000060 02 30 20 00 0a 00 f2 96 30 9a f4 81 e8 96 0c ff |.0 .....0.......|
00000070 32 97 50 7d ba 70 1c 97 02 30 20 00 0a 00 d1 91 |2.P}.p...0 .....|
00000080 1f 75 97 9e 34 6c 0c ff 89 73 fa 51 11 5d a1 5c |.u..4l...s.Q.].\|
00000090 02 30 20 00 0a 00 8d 52 5f 86 e8 5d d5 95 0c ff |.0 ....R_..]....|
@eaglgenes101
eaglgenes101 / loaderref.jl
Created December 6, 2017 14:58
Readable implementation of Loader's number in Julia
r = 0;
a = 0;
/ = div;
P(y, x) = y - ~y << x;
function Z(x)
if x%2 == 0
global r = 1 + Z(x/2);
else
#!/usr/bin/env julia
# Load the moby dick source into one buffer
base = read("whale.txt")
# Generate random fuzz mutation
mutate(genome) = (genome .+ sprand(UInt8, size(genome)[1], .000001)) .% 256
patch(original, genome) = (original .+ genome) .% 256
#!/usr/bin/env julia
import LibArchive
# Load the moby dick source into one buffer
moby = read("mobydick")
# Generate random fuzz mutation
mutate(genome) = (genome .+ sprand(UInt8, size(genome)[1], .000001)) .% 256
GPU HANG: ecode 9:0:0x8ed9fff2, in leelaz [9165], reason: Hang on rcs0, action: reset
Kernel: 4.15.0-17.2-liquorix-amd64
Time: 1524186864 s 634062 us
Boottime: 6582 s 751188 us
Uptime: 6580 s 924628 us
Active process (on ring render): leelaz [9165], score 0
Reset count: 0
Suspend count: 0
Platform: KABYLAKE
PCI ID: 0x5916
Overview
======
While the [ants of the highlands](https://codegolf.stackexchange.com/questions/135102/formic-functions-ant-queen-of-the-hill-contest) gather food and walk around each other, their distant cousins live in the forests below, growing fungus and aggressively raiding the ground and other nests for food. But like their highland counterparts, they want food, and they have armies of workers at their disposal to get at it.
The Arena
------
The arena is a torodial 1000*2500 grid of squares. Each cell has one of eight colors, and at most one object at any one time. There are three types of objects of significance: