This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{'connection': 'close', | |
'content-length': '1598', | |
'content-type': 'application/json', | |
'host': 'mymac.employer.server.de:8000'} | |
{ | |
"before": "781f005120f77fbc69d1077d57b3b10ee792f232", | |
"after": "0bba8ee1bc7d3f5849b530ef6a4bdef1e97f8ecb", | |
"ref": "refs/heads/master", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import BaseHTTPServer | |
from pprint import pprint | |
HOST_NAME = '0.0.0.0' | |
PORT_NUMBER = 8000 | |
class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division | |
import numpy | |
n = 1000000 | |
# 2D data spread uniformly across a square of A=1 | |
data = numpy.random.uniform(-0.5, 0.5, size=(n, 2)) | |
# Count points that are within distance 0.5 from center | |
inside = len( | |
numpy.argwhere( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: speps <speps at aur dot archlinux dot org> | |
pkgname=rtmidi | |
pkgver=2.1.0 | |
pkgrel=1 | |
pkgdesc="A set of C++ classes that provides a common API for realtime MIDI input/output." | |
arch=(i686 x86_64) | |
url="http://www.music.mcgill.ca/~gary/rtmidi/" | |
license=('MIT') | |
depends=('alsa-lib') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Snippet Templates | |
* | |
* A plugin to inject sections into snippets | |
* | |
* Sample Usage: | |
* | |
* In your snippet: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\def\speaker{% | |
(11mm,2mm) -- +(0mm,-4mm) | |
(13mm,4mm) -- +(0mm,-8mm) | |
(15mm,6mm) -- +(0mm,-12mm) | |
(0mm,0mm) -- +(0mm,-3mm) -- +(4mm,-3mm) -- +(9mm,-7mm) -- +(9mm,7mm) -- +(4mm,3mm) -- +(0mm,3mm) -- +(0mm,0mm) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SUBLIME="subl" | |
# We need to remove the stupid "file://" that Evince puts in front of the file name | |
# Notice the wild quoting: we need to interpolate $SUBLIME | |
# In the end, EDITORCMD should be of the form: | |
# | |
# f=%f; sublime-text "${f#file://}:%l" | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Christian Thurau <christian DOT thurau AT iais DOT fraunhofer DOT de> | |
pkgname='python2-pymf' | |
pkgver=0.1.9 | |
pkgrel=1 | |
pkgdesc="Python Matrix Factorization (PyMF) is a module for several constrained/unconstrained matrix factorization (and related) methods" | |
url="http://code.google.com/p/pymf/" | |
arch=('any') | |
license=('GPL3') | |
depends=('python2' 'python2-cvxopt') | |
source=(https://pypi.python.org/packages/source/P/PyMF/PyMF-$pkgver.tar.gz pymf-$pkgver.patch) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAKEFLAGS += -j1 | |
LATEXFLAGS += -interaction=batchmode | |
TEXPATH += .:./lib//: | |
.PHONY: document beispiel desktop preview images clean cleanall | |
document: thesis.pdf cover.pdf back.pdf | |
cover: cover.pdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from IPython.core.display import DisplayObject | |
import StringIO | |
import base64 | |
import struct | |
import sys | |
class Audio(DisplayObject): | |
def __init__(self, data=None, rate=None, url=None, filename=None, autoplay=False): | |
if(data is not None): | |
buffer = StringIO.StringIO() |