pack()
pack_fp()
unpack()
unpack_fp()
BloscpackFile()
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
print "Good-bye World!" |
There are three main kinds of markup that should be used: italics, bold
and fixed-font
. Italics should be used when introducing a new technical
term, bold should be used for emphasis and fixed-font
for source code
Example
When using object-oriented programming in python you must use the
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
# Functions to activate/deactivate Continuum Analytics Anaconda Python distribution | |
# by manipulating the $PATH. | |
export ANACONDA_PATH="$HOME/anaconda/bin" | |
function have_anaconda(){ | |
[[ -n $path[(r)$ANACONDA_PATH] ]] | |
} | |
function anaconda_on(){ | |
if have_anaconda ; then |
- public libgit2 structs should be python objects (classes) - Example: git_repository => Repository()
- nameing convention: strip git_
struct_name
_* - Example: git_repository_config() => Repository.config() - iterations should be implemented as a generator, if this is not possible we need to change libgit2 (other bindings will benefit from this as well)
- every method should map to one libgit2 function (exceptions are iterations)
- return values of methods
- no lists use generators instead
- no dictionaries use tuples or objects instead
- no instantiation of objects use strings instead (important for generators)
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
""" Benchmarking two techniques for compressing numpy arrays with python-blosc. | |
""" | |
import numpy | |
import numpy.random | |
import time | |
import blosc | |
import blosc.blosc_extension as ext | |
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
gc () { | |
LBUFFER="git commit -m \"" | |
RBUFFER="\"" | |
} | |
zle -N gc gc | |
bindkey '^gc' gc |
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
alias gib="git branch" | |
alias branch="git branch" | |
alias gil="git log" | |
# log is a zsh builtin | |
alias gid="git diff" | |
alias gidc="git diff --cached" | |
alias giw="git wdiff" | |
# diff is a unix utility | |
alias gis="git status --ignored" | |
alias status="git status" |
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
[color] | |
ui = auto | |
branch = auto | |
diff = auto | |
status = auto | |
[core] | |
excludesfile = ~/.gitignore | |
whitespace = trailing-space,space-before-tab,cr-at-eol | |
abbrev = 10 | |
[merge] |