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
| import matplotlib.pyplot as plt | |
| from matplotlib.backends.backend_pdf import PdfPages | |
| import datetime | |
| infodict={'Author':'yAngle', | |
| 'CreationDate':datetime.datetime.today(), | |
| 'ModDate':datetime.datetime.today(), | |
| } | |
| fig=plt.figure(figsize=(3.4,2.2)) # 3.4 for RevTeX columnwidth, 2.2 ~ golden ratio |
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
| // gcc -std=c99 -O3 -fPIC -shared -Wl,-soname,mylib -o mylib.so mylib.c | |
| #include <stdio.h> | |
| #include <complex.h> | |
| int build_hamiltonian(int i, double d, complex double *m) | |
| { | |
| m[0]=2.*I; | |
| return 0; | |
| } |
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
| import traceback, sys, code | |
| def bombs(): | |
| a = [] | |
| print a[0] | |
| if __name__ == '__main__': | |
| try: | |
| bombs() | |
| except: |
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: Matthew Bauer <mjbauer95@gmail.com> | |
| # Maintainer: Steven Allen <steven@stebalien.com> | |
| _pkgname='pithos' | |
| pkgname="$_pkgname-git" | |
| pkgver=20120829 | |
| pkgrel=1 | |
| pkgdesc='A Pandora Radio (pandora.com) player for the GNOME Desktop using the libpiano library (also used by pianobar).' | |
| arch=('any') | |
| url="https://github.com/yAngle/$_pkgname" |
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/env python2 | |
| import re | |
| import os | |
| import errno | |
| def mkdir(path): | |
| try: | |
| os.makedirs(path) | |
| except OSError as exc: # Python >2.5 |
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
| # $Id: PKGBUILD 82563 2013-01-21 00:12:49Z dwallace $ | |
| # Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com> | |
| # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> | |
| # Contributor: ML <neldoreth> | |
| pkgname=zathura | |
| pkgver=0.2.2 | |
| pkgrel=1 | |
| pkgdesc="a document viewer" | |
| arch=('i686' 'x86_64') |