This file contains 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
update_current_git_vars.sh |
This file contains 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 calc_pep_index(A,E): | |
R = E | |
for i in xrange(1000): | |
R1 = .975*(A*R)+.025*E | |
if norm(R1-R) < some_tolerance: | |
break | |
R = R1 | |
else: | |
raise Exception("no convergence") | |
return R |
This file contains 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
gource --stop-at-end --output-ppm-stream - $GIT_REPO | ffmpeg2 -y -b 3000K -r 60 -f image2pipe -vcodec ppm -i - -vcodec mpeg4 $FILM_NAME.mp4 |
This file contains 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
# remove all the files but the file named "my_file.py": | |
git filter-branch -f --prune-empty --tree-filter 'find . ! -type d | grep -v "./my_file.py$" | while read FILE; do rm "$FILE"; done' HEAD | |
# if there are still empty commit despite the --prune-empty option, remove them: | |
git filter-branch --commit-filter 'if [ z$1 = z`git rev-parse $3^{tree}` ]; then skip_commit "$@"; else git commit-tree "$@"; fi' "$@" |
This file contains 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
class A(object): | |
def msg(self): | |
print 'A', | |
class B(A): | |
def msg(self): | |
super(B,self).msg() | |
print 'B', | |
class C(B): |
This file contains 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
\documentclass{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{calc,decorations.markings,intersections,fpu} | |
\tikzset{ | |
>=stealth, | |
fiber/.style={draw,thick,blue!70!black}, | |
flight/.style={draw,black,thick, densely dotted, decoration={markings, mark=at position 0.6 with {\arrow{>}}}, postaction={decorate}}, |
This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Chebfun in Python" | |
] | |
}, | |
{ |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer