I hereby claim:
- I am kynan on github.
- I am frathgeber (https://keybase.io/frathgeber) on keybase.
- I have a public key ASB5SYm7rBgwnwovMxDQDbfGg_al7HvhEknK4XuCHpb9two
To claim this, I am signing this object:
#!/usr/bin/python | |
# .- coding: utf-8 -. | |
# | |
# irssi_log_merge.py. | |
# Written by Lasse Karstensen <lasse.karstensen@gmail.com>, 2008. | |
# Released under GPLv2. | |
# | |
# Newest version available on http://hyse.org/irssi-log-merge/ . | |
# | |
# Modified by Florian Rathgeber <florian.rathgeber@gmail.com> |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
"""Extract pids from a BBC iPlayer programme page. | |
usage: get_iplayer --pid $(getbbcpid <url>) | |
""" | |
from __future__ import print_function | |
from bs4 import BeautifulSoup |
#!/bin/bash | |
# | |
# Shell script that configures terminator to use solarized theme | |
# colors. Assumes a single terminator profile. Tested on Ubuntu 11.10. | |
# | |
# Solarized theme: http://ethanschoonover.com/solarized | |
# | |
# Original from 79CetiB: | |
# http://www.reddit.com/r/emacs/comments/npfmv/i_need_some_help_with_the_solarized_theme_in_a/c3b4mds | |
# |
from copy import copy | |
class GameOfLife: | |
RULES = { | |
(1,1,1): 0, | |
(1,1,0): 0, | |
(1,0,1): 0, | |
(1,0,0): 1, | |
(0,1,1): 1, | |
(0,1,0): 0, |
DEAD = 0 | |
ALIVE = 1 | |
evolve_cell = (left, middle, right) -> | |
register = left*4+middle*2+right | |
#console.log left, middle, right, register | |
switch register | |
when 4 then ALIVE # from [ALIVE,DEAD,DEAD] | |
when 3 then ALIVE # from [DEAD,ALIVE,ALIVE] | |
else |
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
if git rev-parse --verify HEAD >/dev/null 2>&1 |
#!/bin/bash | |
# | |
# By Sirupsen @ http://sirupsen.dk | |
# Original version: http://sirupsen.com/a-simple-imgur-bash-screenshot-utility | |
# Modifications by Florian Rathgeber @frathgeber (https://github.com/kynan) | |
# | |
# Description: Very simple script to make you | |
# select a region of your screen, which will be captured, and | |
# then uploaded. The URL will then be injected into your clipboard. | |
# |
# Load modules | |
module unload intel-suite/10.1 | |
module load armadillo/1.1.90 cgal/3.5 mpfr/2.4.1 intel-suite/11.1 mumps/4.9.2-parmetis parmetis/3.1 petsc/3.1-p6 scipy/2009-08-25 swig/2.0.2 | |
# Platform specific variables | |
default UMFPACK_DIR=/usr | |
default PETSC_ARCH=linux-gnu-cxx-op | |
default GMP_DIR=/usr | |
default SCOTCH_ARCH=pc_linux2 |