Skip to content

Instantly share code, notes, and snippets.

View pjf's full-sized avatar

Paul Fenwick pjf

View GitHub Profile
@pjf
pjf / .bash_prompt
Created January 3, 2014 02:05
How pjf makes his prompt so awesome. I actually put the colours in ~/.bash_colours and source that in, but I've in-lined it here for easy gisting. ;)
# Reset
Color_Off='\[\e[0m\]' # Text Reset
# Regular Colors
Black='\[\e[0;30m\]' # Black
Red='\[\e[0;31m\]' # Red
Green='\[\e[0;32m\]' # Green
Yellow='\[\e[0;33m\]' # Yellow
Blue='\[\e[0;34m\]' # Blue
@pjf
pjf / MWDF-Tileset-Diffs.diff
Created November 15, 2013 07:11
Differences between the master raw files and tilesets in Masterwork Dwarf Fortress
This file has been truncated, but you can view the full file.
Finding potential tileset differences...
Excluding: inorganic_stone_gem.txt
Known display tags are: COLOR CREATURE_SOLDIER_TILE CREATURE_TILE DEAD_SAPLING_COLOR DEAD_SAPLING_TILE DEAD_SHRUB_COLOR DEAD_SHRUB_TILE DEAD_TREE_COLOR DEAD_TREE_TILE DISPLAY_COLOR GLOWCOLOR GLOWTILE GRASS_COLORS GRASS_TILES ITEM_SYMBOL PICKED_COLOR PICKED_TILE SAPLING_COLOR SAPLING_TILE SHRUB_COLOR SHRUB_TILE STATE_NAME_ADJ TILE TREE_COLOR TREE_TILE
--- /home/pjf/cygwin/pjf/cvs/MWDF/Dwarf Fortress/raw/objects/creature_amphibians.txt 2013-02-25 20:58:56.000000000 +1100
+++ /home/pjf/cygwin/pjf/cvs/MWDF/MasterworkDwarfFortress/graphics/ASCII/raw/objects/creature_amphibians.txt 2013-11-07 14:08:42.404141240 +1100
@@
#!/usr/bin/perl -w
use 5.010;
use strict;
use warnings;
use autodie qw( :all );
use WebService::Beeminder;
use Config::Tiny;
# use Smart::Comments;
# Get our beeminder auth token.
@pjf
pjf / exifpic.pl
Last active December 10, 2015 09:58 — forked from anonymous/exifpic
# /usr/bin/perl -w
use 5.010;
use strict;
use warnings;
use threads;
use Thread::Queue;
use autodie qw(:all);
use Image::ExifTool qw(ImageInfo);
use Data::Dumper;
use Imager;
@pjf
pjf / depression.txt
Created November 29, 2012 00:57
Depression
Dear Everyone,
I have depression.
This isn't the sort of sadness that sticks around for a week and then
goes away. It's not the sort of thing that even has a good reason, although
there might have been one originally. It's the sort of thing that can
stick with you for months or even years, is a recognised illness, and
is one of the worst possible states a human can experience.
@pjf
pjf / event-tree.pl
Created November 26, 2012 00:49
Turns event invite information into graphviz files
#!/usr/bin/perl -w
use 5.010;
use strict;
use warnings;
use autodie;
local $/ = q{<li class="fbProfileBrowserListItem uiListItem">};
<>; # Discard leader
@pjf
pjf / gist:4087296
Created November 16, 2012 13:18
Housemate advertisement.
Have you dreamed of living walking distance from the University of Melbourne,
the fabulous restaurants of Lygon, the boutique coffee-shops of Rathdowne, the
bustling variety of Brunswick Street? I'm looking for housemates to join me in
Drummond Street, Carlton North, near the corner of Lee Street.
The location here is fantastic; there's a supermarket at the end of the street,
cafés and bakeries around the corner, libraries, parks, pharmacies,
post-office, University of Melbourne, and many, many restaurants all within
walking distance.
@pjf
pjf / bmndr.pl
Created August 15, 2012 05:53
bmndr code
#!/usr/bin/perl -w
use 5.010;
use strict;
use warnings;
use autodie qw( :all );
use POSIX qw( strftime );
use Config::Tiny;
use WWW::Mechanize;
use JSON::Any;
@pjf
pjf / SillyFunction.pm
Created August 8, 2012 04:35
Code for Fuzzi
#
# Instructions
#
# 1. Figure out what this function does
# 2. Write a unit test for it
# 3. Refactor for readability and efficiency
#
# NOTE: Do regular commits that show agile style iterations through the problem.
# If you prefer a different language, you can provide your solution in PHP,
# Python or Javascript too.