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:
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 |
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 |
# according to http://jdfreder-notebook.readthedocs.org/en/docs/examples/Notebook/Importing%20Notebooks.html | |
import io, os, sys, types | |
from IPython import get_ipython | |
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" |
#!/usr/bin/python | |
import urllib | |
import urllib2 | |
import libxml2 | |
import inspect | |
import sys | |
import zlib | |
import base64 | |
import struct |
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 |