Skip to content

Instantly share code, notes, and snippets.

View nkoep's full-sized avatar
💭
Sensual

Niklas Koep nkoep

💭
Sensual
View GitHub Profile
### Keybase proof
I hereby claim:
* I am nkoep on github.
* I am nkoep (https://keybase.io/nkoep) on keybase.
* I have a public key ASDkOC5Pl5bqR-lLeSMsQ6cttYnE72db93HlQCOPWFAQEQo
To claim this, I am signing this object:
@nkoep
nkoep / dump_spotify_albums.js
Created October 24, 2017 07:18
Dump all album names in spotify library
// First of all, scroll down to the end of the library so all albums are loaded in
// the viewport. Then simply call the function below in the developer console.
function print_albums() {
var objects = document.getElementsByClassName("media-object");
var albums = "";
for (var i = 0; i < objects.length; ++i) {
var el = objects[i];
var artist_label = el.getElementsByClassName("mo-meta")[0];
var artist = artist_label.getElementsByTagName("a")[0].innerHTML;
#!/usr/bin/env bash
set -o errexit
BASEDIR=$PWD
SRC=$BASEDIR/src
mkdir -p $SRC
enter_venv() {
ENV=$BASEDIR/env
@nkoep
nkoep / gist:7f292b166913840901aa
Created October 19, 2015 11:44
numpy build log
File `/tmp/tmp.eNEY0orve8/src/v0.2.14.tar.gz' already there; not retrieving.
New python executable in /tmp/tmp.eNEY0orve8/env/bin/python
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
Running from numpy source directory.
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite'
warnings.warn(msg)
blas_opt_info:
blas_mkl_info: