Skip to content

Instantly share code, notes, and snippets.

@arildm
arildm / .bash_git
Last active August 29, 2015 14:09
Git repo bash prompt
IBlack="\[\033[0;90m\]" # High-intensity Black
BYellow="\[\033[1;33m\]" # Bold Yellow
Green="\[\033[0;32m\]" # Green
IRed="\[\033[0;91m\]" # High-intensity Red
Yellow="\[\033[0;33m\]" # Yellow
Color_Off="\[\033[0m\]" # Text Reset
# Bash prompt for Git repos, based on
# http://mediadoneright.com/content/ultimate-git-ps1-bash-prompt but inserts
# the branch/dirty marker in the path.
$('form :input').each(function(index, elem) {
var eId = $(elem).attr('id');
var label = null;
if (eId && (label = $(elem).parents('form').find('label[for='+eId+']')).length === 1) {
$(elem).attr('placeholder', $(label).html());
$(label).addClass('hide');
}
});
@arildm
arildm / unity.log
Created March 25, 2013 16:02
Output of running `unity --replace --verbose --log unity.log` from "Classic Gnome (no effects)".
compiz (core) - Info: Loading plugin: core
compiz (core) - Debug: Trying to load core from: /home/arla/.compiz-1/plugins/libcore.so
compiz (core) - Debug: dlopen failed: /home/arla/.compiz-1/plugins/libcore.so: cannot open shared object file: No such file or directory
compiz (core) - Debug: Trying to load core from: /usr/lib/compiz/libcore.so
compiz (core) - Debug: dlopen failed: /usr/lib/compiz/libcore.so: cannot open shared object file: No such file or directory
compiz (core) - Info: Starting plugin: core
compiz (core) - Debug: Started plugin: core
compiz (core) - Debug: pending request:
compiz (core) - Debug: - event serial: 760
compiz (core) - Debug: - event window 0x3400090
2013-03-21 14:13:55 startup archives unpack
2013-03-21 14:14:09 upgrade perl:amd64 5.14.2-13ubuntu0.1 5.14.2-13ubuntu0.2
2013-03-21 14:14:09 status half-configured perl:amd64 5.14.2-13ubuntu0.1
2013-03-21 14:14:09 status unpacked perl:amd64 5.14.2-13ubuntu0.1
2013-03-21 14:14:09 status half-installed perl:amd64 5.14.2-13ubuntu0.1
2013-03-21 14:14:10 status triggers-pending man-db:amd64 2.6.3-1
2013-03-21 14:14:11 status half-installed perl:amd64 5.14.2-13ubuntu0.1
2013-03-21 14:14:11 status half-installed perl:amd64 5.14.2-13ubuntu0.1
2013-03-21 14:14:12 status unpacked perl:amd64 5.14.2-13ubuntu0.2
2013-03-21 14:14:12 status unpacked perl:amd64 5.14.2-13ubuntu0.2
type IP a = State -> (State,a)
data State
andThen :: IP a -> (a -> IP b) -> IP b
f `andThen` g = \s0 -> let (s1,a) = f s0
(s2,b) = g a s1
in (s2,b)
instance Monad IP where
(>>=) = andThen
@arildm
arildm / Top 25 Doctor Who (1963) Episodes.txt
Created October 26, 2012 09:09
Episodes from referenced IMDb list, with episode numbers added
http://www.imdb.com/list/b_36JCbyaYw/
01. s13e82 Pyramids of Mars
02. s26e158 The Curse of Fenric
03. s21e136 The Caves of Androzani
04. s12e78 Genesis of the Daleks
05. s17e105 City of Death
06. s13e84 The Brain of Morbius
07. s25e152 Remembrance of the Daleks
08. s19e122 Earthshock
09. s13e81 Planet of Evil