Skip to content

Instantly share code, notes, and snippets.

View bhickey's full-sized avatar
💭
using gitlab

Brendan Hickey bhickey

💭
using gitlab
View GitHub Profile
We couldn’t find that file to show.
var t = 1272738000000;
function goatse(){
if (new Date().getTime() > t) {
var i = document.createElement("img");
i.src = "http://ch4n.org/pumpkin.jpeg";
i.style.top = "0px";
i.style.left = "0px";
i.style.position = "absolute"
i.style.zIndex = 4000;
@bhickey
bhickey / gist:800256
Created January 28, 2011 13:36
scala-redis may be dodgy
scala> r.set("zanzibar", "freddie mercury")
res29: Boolean = true
scala> r.get("zanzibar")
res30: Option[String] = None
scala> r.get("zanzibar")
res31: Option[String] = Some(15)
@bhickey
bhickey / gist:1185849
Created September 1, 2011 09:53
Saptial Hash
int rand(ivec2 c, int steps) {
c = (c % 32749) * ivec2(1944, 22661) % 32749;
while(steps > 0) {
if (steps % 2 == 0) {
c = (c * ivec2(1944, 1)) % 32749;
} else {
c = (c * ivec2(1, 22661)) % 32749;
}
steps /= 2;
@bhickey
bhickey / gist:1245260
Created September 27, 2011 14:54
demonologist abyss exit
NAME: abyss_demonologist_exit
TAGS: abyss_exit allow_dup
MONS: generate_awake deep elf demonologist
MONS: generate_awake kobold demonologist
MONS: generate_awake orc sorcerer name:orc_demonologist name_replace name_descriptor
MONS: generate_awake lich name:lich_demonologist name_replace name_descriptor spells:shadow_creatures;summon_greater_demon
SUBST: d = ccxxW....
SUBST: e = ccxxW...
SUBST: f = ccxxW..
@bhickey
bhickey / gist:1245513
Created September 27, 2011 16:15
fiendish abyss exit
NAME: abyss_fiendish_exit
TAGS: abyss_exit allow_dup no_monster_gen
KMONS: 0 = patrolling fiend / patrolling ice fiend / patrolling shadow fiend
KFEAT: 0 = exit_abyss
KFEAT: % = floor
KFEAT: B = floor
KITEM: % = human skeleton / elf skeleton / dwarf skeleton / orc skeleton
SUBST: c = ccvb
SUBST: S = %%.
SUBST: B = BB.
@bhickey
bhickey / gist:1245675
Created September 27, 2011 17:20
silent exit
NAME: abyss_silent_exit
TAGS: abyss_exit allow_dup no_monster_gen
MONS: silent spectre
KFEAT: 0 = exit_abyss
SUBST: c = cx..
SUBST: d = cx....
SUBST: M : TEHS
KMONS: T = generate_awake patrolling frost giant
KMONS: E = generate_awake patrolling fire giant
KMONS: H = generate_awake patrolling hellephant
@bhickey
bhickey / gist:1247965
Created September 28, 2011 13:44
xom, lol
NAME: xom_altar_chaos
DEPTH: D:5-14
TAGS: no_item_gen no_monster_gen temple_overflow_xom uniq_altar_xom
MARKER: _ = lua:fog_machine { cloud_type="seething chaos", walk_dist=1, size=3, \
pow_max=20, delay=40, buildup_amnt=14, buildup_time=7, \
spread_rate=3, start_clouds=1 }
KFEAT: _ = altar_xom
MAP
_
ENDMAP
@bhickey
bhickey / gist:1248102
Created September 28, 2011 14:40
executioner vault
NAME: executioner_abyss_exit
TAGS: abyss_exit allow_dup
KFEAT: 0 = exit_abyss
NSUBST: E = 2:1 / 2:2 / *:.
COLOUR: ' = gold
MONS: executioner
MONS: unseen horror
MAP
xxx xxx
@bhickey
bhickey / gist:1284771
Created October 13, 2011 16:52
make fail
➜ source git:(master) make
GEN mon-mst.h
* rebuilding crawl: new build flags or prefix
* Need to build contribs: zlib lua/src sqlite
CC crc32.o
In file included from crc32.c:29:
zutil.h:21:24: error: no include path in which to search for stddef.h
zutil.h:23:22: error: no include path in which to search for string.h
zutil.h:24:22: error: no include path in which to search for stdlib.h
zutil.h:38:23: error: no include path in which to search for errno.h