Skip to content

Instantly share code, notes, and snippets.

View havardgulldahl's full-sized avatar

Håvard Gulldahl havardgulldahl

  • NRK
  • Tromsø, Norway
View GitHub Profile
@havardgulldahl
havardgulldahl / websocketserver.py
Created November 28, 2010 23:10 — forked from mumrah/websocketserver.py
Python WebSocket server (single thread)
# -*- encoding: utf8 -*-
#
# Simple WebSockets in Python
# By Håvard Gulldahl <havard@gulldahl.no>
#
# Based on example by David Arthur (he did all the hard work :)
# https://gist.github.com/512987
#
import struct
@havardgulldahl
havardgulldahl / bildekrymper.sh
Created August 2, 2011 19:13
Bildekrymper med GUI. For epostsending. Knytt det til .jpeg|.jpg|.png|etc i systemet ditt.
#!/bin/bash
# krymper en bildefil til noe som går an å sende i epost
# knytt dette til .jpg-filer i systemet ditt.
# 2010 havard@gulldahl.no
TARGET=/tmp/bildekrymp
LOG=/tmp/bildekrymper.log;
DIMLIST="TRUE 1600x1200 FALSE 1280x960 FALSE 1024x960"
@havardgulldahl
havardgulldahl / poi.csv
Created April 2, 2015 17:18
Oppdrag Nansen POI
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
TEXT;URL;LAT;LON
Stopper første dagen;http://nrksuper.no/tag/oppdragnansnen;89.11;60.0
Stopper andre dagen;http://nrksuper.no/tag/oppdragnansnen;89.23;60.0
Stopper tredje dagen;http://nrksuper.no/tag/oppdragnansnen;89.39;60.0