Skip to content

Instantly share code, notes, and snippets.

View esc's full-sized avatar
:octocat:
doing open source

Emergency Self-Construct esc

:octocat:
doing open source
View GitHub Profile
@esc
esc / gist:1f7097d6c33b037b6911
Created April 1, 2015 17:46
hashing with git and python
zsh» git init example
Initialized empty Git repository in /tmp/example/.git/
zsh» cd example
zsh» cp ../objektmodell-beispiel/hello.py .
zsh» cat hello.py
#! /usr/bin/env python
""" Hello World! """
print 'Hello World!'
@esc
esc / test_lz4_failure.py
Created October 24, 2014 13:56
Testing LZ4 failure with blosc
import blosc
data = [
0x93, 0xb0, 0x49, 0xaf, 0x62, 0xad, 0xe3, 0xaa, 0xe4, 0xa5, 0x43, 0x20,
0x24, 0x29, 0xc9, 0xaf, 0xee, 0xad, 0x0b, 0xac, 0x3d, 0xa8, 0x1f, 0x99,
0x53, 0x27, 0xb6, 0x2b, 0x16, 0xb0, 0x5f, 0xae, 0x89, 0xac, 0x51, 0xa9,
0xfc, 0xa1, 0xc9, 0x24, 0x59, 0x2a, 0x2f, 0x2d, 0xb4, 0xae, 0xeb, 0xac,
0x2f, 0xaa, 0xec, 0xa4, 0x53, 0x21, 0x31, 0x29, 0x8f, 0x2c, 0x8e, 0x2e,
0x31, 0xad, 0xd6, 0xaa, 0x6d, 0xa6, 0xad, 0x1b, 0x3e, 0x28, 0x0a, 0x2c,
0xfd, 0x2d, 0xf8, 0x2f, 0x45, 0xab, 0x81, 0xa7, 0x1f, 0x95, 0x02, 0x27,
@esc
esc / blaze_quickstart.ipynb
Created June 23, 2014 14:56
Blaze Quickstart
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@esc
esc / numpy-100.ipynb
Created May 28, 2014 21:42
Numpy 100
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@esc
esc / ipynb
Created May 10, 2014 11:23
numpyson vs. bloscpack
{
"metadata": {
"name": "",
"signature": "sha256:0feedd0a35b31c9754c41d8a4b1cc4d08d77967657305f0b8f43b24c397cd132"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@esc
esc / notes.rst
Created September 25, 2013 18:04
Git server side software.
@esc
esc / gist:6403489
Last active December 22, 2015 02:28
[color]
ui = auto
branch = auto
diff = auto
status = auto
[core]
excludesfile = ~/.gitignore
whitespace = trailing-space,space-before-tab,cr-at-eol
abbrev = 10
[merge]
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"
@esc
esc / gist:5470837
Created April 26, 2013 22:20
Zsh zle widget for git commit
gc () {
LBUFFER="git commit -m \""
RBUFFER="\""
}
zle -N gc gc
bindkey '^gc' gc
@esc
esc / bench.py
Last active December 15, 2015 21:29
Benchmarking two techniques for compressing numpy arrays with python-blosc.
""" 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