Skip to content

Instantly share code, notes, and snippets.

View polm's full-sized avatar

Paul O'Leary McCann polm

View GitHub Profile
@polm
polm / galaxyangel
Last active August 29, 2015 14:02
Generated Arcana take 1
The Useful Compatriot Helper, representing the Bite
The Dangerous Physician Waitress, representing the Perfect
The Perfect Compatriot Guerrilla, representing the Song
The Adorable President Grandfather, representing the Told
The Planet-destroying Longer Client, representing the Sad
The Centennial Daughter President, representing the Extraordinary
The Late-night Contractor Rogue, representing the Other
The Desperate Winner Contractor, representing the Historical
The Free Captain Rogue, representing the Whole
The Short-lived Winner Prince, representing the Previous
@polm
polm / items.txt
Last active August 29, 2015 14:02
Red Dragon Item Generator Second Draft
厄介な後ろの不穏な剣
瞳いとこの敏感な石
豪勢な脅威の一連釣り合い
妙な背後の単純な杯
ハードな軍師の速いバット
自国自分の小説小説
濃密な貴族の静かな空白
得意な兄さんのめざとい前世
細かい母のすい通り
陰鬱な軍人の美味な尻尾
spawn frob -i plain bone.t3
send "\n\n\n\n\n\n\n\n\n\n"
while {1} {
expect {
"More" {send "\n"}
default break
}
}
@polm
polm / life.sh
Created February 25, 2014 13:54 — forked from anonymous/life.sh
#!/bin/bash
GENS=50
WIDTH=12
HEIGHT=12
declare -a OLD
declare -a NEW
OLD=( \
@polm
polm / gist:9085665
Created February 19, 2014 03:42
Ruby Syntax
'abc' + ['x', 'y', 'z'].join
# OK
'abc' + ['x', 'y', 'z'].join('')
# OK
'abc' + (['x', 'y', 'z'].join '')
# OK
'abc' + ['x', 'y', 'z'].join ''
# SyntaxError: unexpected tSTRING_BEG, expecting end-of-input
# ???
@polm
polm / deltos.coffee
Created August 22, 2013 23:41
Quick start of a static blog in Coffeescript.
#Load deps
fs = require('fs')
jsdom = require('jsdom').jsdom
yaml = require('js-yaml')
trans = require('transparency')
marked = require('marked')
_ = require('underscore')
#Load yaml
@polm
polm / .Xdefaults
Created June 24, 2013 07:51
How to set up fonts for urxvt.
URxvt.background: black
URxvt.foreground: cyan
URxvt.scrollBar: false
URxvt.font: xft:ProFontWindows,\
xft:Bitstream Vera Sans Mono,\
xft:Ume Gothic O5,\
xft:Hiragino Maru Gothic Pro,\
xft:Osaka:style=Regular-Mono
URxvt.cursorBlink: true
#URxvt.font: xft:terminus
@polm
polm / gist:4231626
Created December 7, 2012 08:00
tmux.conf
unbind C-b
set -g prefix `
set -g history-limit 10000
set -g status-bg blue
bind-key ` send-prefix
setw -g mode-keys vi
bind Escape copy-mode
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
_ = require 'underscore'
r = Math.random
rr = (x) -> ~~(r() * x)
#How wide is the main hall?
hallwidth = (rr(3) * 2) + 4
#How tall can a room be?
#TODO make variable
@polm
polm / index.html
Created June 5, 2012 13:54
Count of Monte Cristo Character & Place Graph Rough
<html>
<title>Count of Monte Cristo Character Mentions</title>
<script src="http://d3js.org/d3.v2.js?2.8.1"></script>
<div id="viz"></div>
<script>
function doGraph(rows){
//scales