- 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 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] |
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
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 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 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 | |
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 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!" |
Anyone wishing to contribute should join the discussion on the blaze-dev mailing list at: blaze-dev@continuum.io