Skip to content

Instantly share code, notes, and snippets.

View pauldub's full-sized avatar
🐱
🇫🇷 🇧🇪

Paul pauldub

🐱
🇫🇷 🇧🇪
View GitHub Profile
@pauldub
pauldub / morgue.txt
Created August 14, 2015 19:16
koakr
Dungeon Crawl Stone Soup version 0.16.1 (tiles) character file.
2076446 koakr the Intangible (level 27, 186/267 (273) HPs)
Began as a Minotaur Gladiator on Aug 14, 2015.
Was the Champion of Cheibriados.
Escaped with the Orb
... and 4 runes!
The game lasted 05:27:58 (105435 turns).
@pauldub
pauldub / gist:e75744db069f56a5e431
Created January 10, 2015 20:39
boar the Hoplite (Demonspawn Wizard)
Dungeon Crawl Stone Soup version 0.15.0-8-gb109cf8 (tiles) character file.
boar the Hoplite (Demonspawn Wizard) Turns: 41031, Time: 03:56:44
HP 137/140 AC 26 Str 11 (13) XL: 17 Next: 49%
MP 31/31 EV 16 Int 23 God: Ashenzari [******]
Gold 1088 SH 22 Dex 15 (16) Spells: 10 memorised, 4 levels left
rFire . . . SeeInvis + a - +12 spear "Cileal" {pierce, +Fly rPois}
rCold + . . Clarity + p - +2 ring mail {rC+} (curse)
@pauldub
pauldub / eden.md
Last active August 29, 2015 14:10
Simple Factor spider

Private API

Returns a season's url on the Audiodramax blog.

: season-url ( season -- url ) 
    "http://www.audiodramax.com/tag/eden-saison-%d" sprintf ;

Filters episodes from a list of urls. At the moment we are only interested on .mp3 files.

# Set Ctrl+A as escape sequence
set -g prefix C-a
unbind C-b
# For nested tmuxes use Ctrl+A A <command>
bind a send-prefix
# Lower escape time, make tmux more responsive
set -g escape-time 0
@map = Dungeon::Map.build do
tiles = layer :tiles, 'maps/test_map.bmp', {
# Hmm, colors are weird the 1st is supposed to be 170 170 170
[43690, 43690, 43690] => Dungeon::StoneFloor,
[11308, 11308, 11308] => Dungeon::StoneWall,
[24929, 24929, 24929] => Dungeon::StoneWallV
}
tiles.set :solid, [Dungeon::StoneWall, Dungeon::StoneWallV]
tiles.set :floor, [Dungeon::StoneFloor]
@pauldub
pauldub / vm.c
Created September 4, 2014 07:22
#include <stdlib.h>
#include <stdio.h>
#include <u/libu.h>
int facility = LOG_LOCAL0;
typedef struct stack {
void *mem;
int p;
@pauldub
pauldub / VindiUsage.io
Created August 25, 2014 10:22
Vindi usage
game := Vindi newGame("my_bot_key")
next_turn := game move("Stay")
next_turn := next_turn move("North")
# etc..
Vindi
Behavior
Ionium := Vindi Bot clone do (
GoldWithinRange := Action clone do(
radius := 10
start := method(game,
hero := game hero pos
name = "GoldWithinRange(x: #{hero x}, y: #{hero y}, r: #{radius})" interpolate
#!/usr/local/bin/io
Shell := Object clone
Shell Runner := Object clone do(
shell ::= "/bin/sh -c"
cd := method(path,
Directory setCurrentWorkingDirectory(
if(path findSeq("..") != nil,
Directory with(Directory currentWorkingDirectory) directoryNamed(path) path,
@pauldub
pauldub / r3.nim
Created August 15, 2014 16:53 — forked from anonymous/-
type
TR3Node {.importc: "node", header: "<r3/r3.h>".} = object
data: pointer
proc r3_tree_create(size: int): ptr TR3Node
{.importc, dynlib: "libr3.so"}
proc r3_tree_insert_path(node: ptr TR3Node, path: cstring, data: pointer)
{.importc, header: "<r3/r3.h>".}
proc r3_tree_compile(node: ptr TR3Node, err: ptr cstring): int
{.importc, dynlib: "libr3.so".}