Skip to content

Instantly share code, notes, and snippets.

View brinchj's full-sized avatar
💭
Vacation

Johan Brinch brinchj

💭
Vacation
View GitHub Profile
@brinchj
brinchj / set.js
Created September 21, 2010 13:37
Array.prototype.unique = function() {
var OBJ = 'objects_5b299b192302406291224af702b05463';
var set = {};
set[OBJ] = {};
var arr = new Array();
for(var i = 0; i < this.length; i++)
{
var e = this[i];
#!/bin/zsh
# Unpack in unique folder
dir=${1}_`uuid`;
mkdir ${dir};
tar vxf $1 -C ${dir};
# Move to working dir if only one folder unpacked
output=${dir};
if [ `find ${dir} -maxdepth 1|wc -l` -eq 2 ]; then
@brinchj
brinchj / shoot.sh
Created June 6, 2010 10:23
Script to blend background with text from yourworldoftext.com
#!/usr/bin/env zsh
# Dependencies:
# wget, Xvfb, ImageMagick, Xmonad/awesome/ratpoisen
# Configure path if neccessary
PATH=/home/jos/bin:$PATH
# Original background
56c56
< alle elektroniske ydre enheder er bandlyste.
---
> alle elektroniske hjælpemidler er bandlyste.
70c70
< s: [overpædagogisk] Det er MEGET besværligt at installere en ny
---
From 1028a421cb7d7e9e38f4b8e50c240e6fd211c270 Mon Sep 17 00:00:00 2001
From: Johan Brinch <zerrez@gmail.com>
Date: Fri, 9 Oct 2009 18:19:00 +0200
Subject: [PATCH] minor changes in comments
---
schema.sql | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/schema.sql b/schema.sql
From 9e826f30ee3c84bb2f30558547fc465c5d727a3c Mon Sep 17 00:00:00 2001
From: Johan Brinch <zerrez@gmail.com>
Date: Fri, 9 Oct 2009 17:22:14 +0200
Subject: [PATCH] added test data
---
test-data.sql | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 112 insertions(+), 0 deletions(-)
create mode 100644 test-data.sql