I hereby claim:
- I am mindey on github.
- I am mindey (https://keybase.io/mindey) on keybase.
- I have a public key whose fingerprint is 5AFD B16B 8980 5133 F450 688B DA58 0D1D 5F5C C7AD
To claim this, I am signing this object:
# Practically, it's useful if we have complex observations (rows) and variables (columns): | |
df = pandas.DataFrame( | |
data=pandas.np.array( | |
[[1,2,3,4,5], | |
[6,7,8,9,10], | |
[11,12,13,14,15]]).T, | |
index=pandas.MultiIndex.from_arrays( | |
[['x','x','x','y','z'], | |
['a','a','b','b','c'], |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
""" A simple screen-capture utility. Utilizes ffmpeg or avconv with h264 | |
support. By default it captures the entire desktop. | |
""" | |
################################ LICENSE BLOCK ################################ | |
# Copyright (c) 2011 Nathan Vegdahl | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy |
#!/usr/bin/python | |
import urllib | |
import urllib2 | |
import libxml2 | |
import inspect | |
import sys | |
import zlib | |
import base64 | |
import struct |
Install http://mpmath.org/'s pack globally.
sudo pip install mpmath
Create initialization script ~/.S.py with following content, for 50 digits of precision:
ffmpeg -video_size 1600x900 -framerate 30 -f x11grab -i $DISPLAY -f alsa -ac 2 -i pulse -vsync passthrough -c:v libx264 -qp 0 -preset ultrafast capture.mkv |
ok |
# according to http://nbviewer.ipython.org/github/adrn/ipython/blob/master/examples/Notebook/Importing%20Notebooks.ipynb | |
import io, os, sys, types | |
from IPython.nbformat import current | |
from IPython.core.interactiveshell import InteractiveShell | |
def find_notebook(fullname, path=None): | |
"""find a notebook, given its fully qualified name and an optional path | |
This turns "foo.bar" into "foo/bar.ipynb" | |
and tries turning "Foo_Bar" into "Foo Bar" if Foo_Bar |