b, bart <bart>: | bart simpson |
---|---|
-b, bart <bart>: | bart simpson |
b, -bart <bart>: | bart simpson |
Author: | Valentin Haenel |
---|---|
Contact: | [email protected] |
The following 32 bit header is proposed for bloscpack as of version 0.2.0
.
The design goals of the new header format are to contain as much information as
possible to achieve interesting things in the future and to be as general as
possible such that the new persistence layer of CArray is compatible with
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 zmq | |
context = zmq.Context() | |
socket = context.socket(zmq.REQ) | |
socket.connect("tcp://127.0.0.1:5000") | |
for i in range(10): | |
msg = "msg %s" % i | |
socket.send(msg) | |
print "Sending", msg | |
msg_in = socket.recv() |
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
#!/bin/bash | |
# fast-forward local tracking branch if you get something like (on git checkout): | |
# Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded. | |
# Author: Valentin Haenel <[email protected]> | |
# Licence: wtfpl <http://sam.zoy.org/wtfpl/> | |
BRANCH=$( git branch | grep ^* | sed 's/^\* //' ) | |
if [[ -z $BRANCH ]] ; then | |
# not a git repository | |
exit 1 |
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 python | |
""" A toy mcmc sampler for a loaded dice. | |
Author: Valentin Haenel <[email protected]> | |
Adapted from Matlab code presented in the course: | |
'Probabilistic and Bayesian Modelling in Machine Learning and AI' | |
given by Prof. Manfred Opper at TU-Berlin in Summer 2009 | |
""" |
NewerOlder