Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl -w | |
if (!$ARGV[0]) { | |
print "usage: $0 [entry nr]\n"; | |
exit 1; | |
} | |
my $nr = $ARGV[0]; | |
# name of utility to use to display PCX files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; decide.el --- rolling dice | |
;; Copyright 2014 Pelle Nilsson | |
;; | |
;; Author: Pelle Nilsson <perni@lysator.liu.se> | |
;; Version: 0.2 | |
;; | |
;; This program is free software: you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation, either version 3 of the License, or | |
;; (at your option) any later version. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""gbpdflink.py | |
Script to (attempt to) add links to gamebook PDFs. | |
Expecting two arguments: | |
input PDF file | |
output PDF file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import sys | |
from itertools import repeat | |
from random import shuffle | |
max_nest_size = 3 | |
def make_deck(cardtypes_nr): | |
deck = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from constraint import * | |
cl = ['Warlock', 'Wizard', 'Mage', 'Runecaster', 'Sorcelator'] | |
sp = ['Fireball', 'Iceball', 'SpellSteal', 'Drain Life', 'Smashing Hand'] | |
pk = ['Mana Regeneration', 'Endurance', 'Haste', 'Fire Mastery', 'Ice Mastery'] | |
clsv = [c + 'Spell' for c in cl] | |
clpv = [c + 'Perk' for c in cl] | |
p = Problem() |