Skip to content

Instantly share code, notes, and snippets.

Avatar

Jens Christian Hillerup jchillerup

  • KodeKode
  • Copenhagen
View GitHub Profile
@jchillerup
jchillerup / dumpdr.py
Created Sep 11, 2016
Horribly hacked together script to download stuff from dr.dk/tv
View dumpdr.py
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()
View n-into-n2.py
def y(x):
i = 0
while x > i:
i += 1
x -= i
return i-x, x
print(y(0))
View keybase.md

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:

@jchillerup
jchillerup / client.js
Created Jan 12, 2012
remote reloading of web content with socket.io and node
View client.js
var socket = io.connect('http://HOSTNAME:8080');
socket.on('reload', function (data) {
location.reload();
});
/*
socket.on('eval', function(data) {
eval(data.evalString);
});