Skip to content

Instantly share code, notes, and snippets.


Troy Pracy troyp

View GitHub Profile
troyp /
Last active Jul 25, 2020
The Monad.Reader contents

The Monad.Reader Issue 1 (March 1, 2005)

  • Pseudocode: Natural Style by Andrew J. Bromage
  • Pugs Apocryphon 1 – Overview of the Pugs project by Autrijus Tang
  • An Introduction to Gtk2Hs, a Haskell GUI Library by Kenneth Hoste
  • Implementing Web-Services with the HAIFA Framework by Simon D. Foster
  • Code Probe – Issue one: Haskell XML-RPC, v.2004-06-17 by Sven Moritz Hallberg

The Monad.Reader Issue 2 (May 2005)

troyp /
Created Mar 31, 2020
Copy of pkkolos/urxvt-scripts (which consists only of a


A small collection of perl extensions for the rxvt-unicode terminal emulator.


troyp / jono.csv
Last active Aug 16, 2019
manga onomatopeia
View jono.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 4 columns, instead of 3. in line 1.
ウキ,kee;screech,monkey cry
ウン,groan;mmm;hmmm,groaning sound,One Piece ch788p16
が,chatter,background voices
ガガ,bam bam;pow pow;rattattat,sound of multiple closely-spaced impacts or explosions,One Piece ch788p12
ガギ,clang,clanging,One Piece ch788p13
カツン,clomp,sound of (esp. heavy) footfalls,One Piece ch788p13
ギャ,eek!,shriek (often girlish)
ギャアー,aargh!,screaming;extreme shock;terror,One Piece ch779 (vol78p70)
キラキラ,sparkle;twinkle,twinkling of a star;sparkle of jewellery;sparkling with excitement
troyp / xreadkeys.c
Created Jan 18, 2018 — forked from javiercantero/xreadkeys.c
A X11/Xlib program that reads the KeyPress and KeyRelease events from the window and prints them to the standard output. Used to debug the keyboard within X.
View xreadkeys.c
#include <X11/Xlib.h>
#include <stdio.h>
#include <stdlib.h>
int main()
Display *display;
Window window;
XEvent event;
int s;
troyp /
Created Nov 12, 2017
Display colours used for different file types
# Script to show the colours used for different file types
# Taken from
# This is just a more readable version of the 'eval' code at:
# A nice description of the colour codes is here:
troyp / .gitignore
Last active Nov 12, 2017 — forked from unbracketed/
Export Issues from Github repo to CSV (API v3)
View .gitignore
troyp / onepiece
Last active Apr 25, 2020
One Piece scripts for scraping and caching anime and manga data
View onepiece
onepiece-episode-title: Get an episode title in english, romaji &/or japanese, or print a title according to a format string
gnu tools: bash, sed, tr
pup (
xmlstarlet (unesc)
onepiece-episode-chapters: List the manga chapters adapted by an episode
gnu tools: bash, sed, tr
View .cvim-mouseless-rc
map h previousTab
map l nextTab
map <C-d> scrollPageDown
map <C-u> scrollPageUp
map b :buffer<Space>
map sk<Space> :bookmarks<Space>
map skk :bookmarks /Bookmarks bar/
imap <C-p> backwardLine
imap <C-n> forwardLine
View regex-weburl.js
// Regular Expression for URL validation
// Author: Diego Perini
// Updated: 2010/12/05
// License: MIT
// Copyright (c) 2010-2013 Diego Perini (
// Permission is hereby granted, free of charge, to any person
troyp / close_all_to_right_or_left.penta
Last active Apr 29, 2017
Pentadactyl code to add `:closealltoright` and `:closealltoleft` commands (and corresponding keybindings). Add to `~/.pentadactylrc`. Vimperator versions in
View close_all_to_right_or_left.penta
command! closetabstoleft
\ -description "Close all tabs to the left of the current tab"
\ -js
\ var firstTab = tabs.getTab(0);
\ var numToClose = tabs.getTab().dactylOrdinal - 1;
\ tabs.remove(firstTab, numToClose);
command! closetabstoright
\ -description "Close all tabs to the right of the current tab"
\ -js
\ tabIndex = tabs.getTab().dactylOrdinal - 1;
You can’t perform that action at this time.