Skip to content

Instantly share code, notes, and snippets.

View jchillerup's full-sized avatar
😊

Jens Christian Hillerup jchillerup

😊
  • KodeKode
  • Copenhagen
View GitHub Profile
@jchillerup
jchillerup / client.js
Created January 12, 2012 22:03
remote reloading of web content with socket.io and node
var socket = io.connect('http://HOSTNAME:8080');
socket.on('reload', function (data) {
location.reload();
});
/*
socket.on('eval', function(data) {
eval(data.evalString);
});
@jchillerup
jchillerup / dumpdr.py
Created September 11, 2016 18:21
Horribly hacked together script to download stuff from dr.dk/tv
import os, sys, re
import requests, json
slug = sys.argv[1].split('/')[-1]
metadata = requests.get("http://www.dr.dk/mu-online/api/1.3/page/tv/player/%s" % slug).json()
primary_asset_uri = metadata["ProgramCard"]["PrimaryAsset"]["Uri"]
primary_asset = requests.get(primary_asset_uri).json()
def y(x):
i = 0
while x > i:
i += 1
x -= i
return i-x, x
print(y(0))

Keybase proof

I hereby claim:

  • I am jchillerup on github.
  • I am jchillerup (https://keybase.io/jchillerup) on keybase.
  • I have a public key whose fingerprint is D01F 5D85 D858 F2E8 87A3 1533 8237 EBBE 7FAC C74B

To claim this, I am signing this object: