Skip to content

Instantly share code, notes, and snippets.

View codersquid's full-sized avatar

Sheila Miguez codersquid

View GitHub Profile
@samth
samth / problems.md
Last active August 29, 2015 13:57
Reproducing reproduction.
@michd
michd / .bash_profile
Last active August 29, 2015 14:01
My bash prefix (PS1)
# Return current git branch prefixed with |, nothing if not in git repo
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\|\1/'
}
# Returns some "dirty" flags if they apply, nothing if not in git repo,
# or current branch is clean.
# Flags: M = modified files, ? = untracked files, % = unresolved merges
# These flags are prefixed with a |
parse_git_dirty() {

Guidelines for contribution

This document described guidelines for contributions for projects led by members of the [Poisot lab of computational ecology][pl], Université de Montréal. It should be followed by lab members (at all times), as well as people with suggested added features, or willing to contribute enhancement or bug fixes.

Authorship

Any contribution to the code of a software grants authorship on the next paper

@hodgestar
hodgestar / pyconza2014-pyv.json
Last active August 29, 2015 14:27
PyConZA 2014 videos for Pyvideo.org
[
{
"category": "pyconza2014",
"state": 2,
"description": "PyConZA 2014 closing remarks.",
"language": "English",
"title": "PyConZA 2014: Closing Remarks",
"tags": [
"pyconza",
"pyconza2014",
class FlexibleRequest(urllib2.Request):
VALID_METHODS = [ 'GET', 'POST', 'PUT', 'DELETE', 'HEAD', 'TRACE', 'OPTIONS', 'CONNECT', 'PATCH' ]
def __init__(self, *args, **kwargs):
if 'method' in kwargs:
if not kwargs['method'] in self.VALID_METHODS:
raise ValueError("Invalid method specified: %s" % kwargs['method'])
self.method = kwargs.pop('method')
else:
self.method = None
urllib2.Request.__init__(self, *args, **kwargs)
@stefanv
stefanv / hint.ipynb
Created November 12, 2012 19:50
Hints in the notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / swc-vm.pp
Last active December 16, 2015 23:09
Puppet manifest for a VM suitable for Software Carpentry boot camps.
package { "dkms":
ensure => latest,
}
package { "chromium-browser":
ensure => latest,
}
package { "emacs":
ensure => latest,
@ivanov
ivanov / git-recheckout
Created November 7, 2013 20:16
Your local checkout of a branch, and the remote branch it tracks are out of sync. You want to check it out again, discarding your version of the branch.
#!/bin/bash
# git-recheckout: git reset to the upstream branch
#
# Your local checkout of a branch, and the remote branch it tracks are out of
# sync. You want to check it out again, discarding your version of the branch.
#
# Because you need to know the remotename/branchname string to reset to
#
# 1. get the remotename/the-branch combination
# 2. git reset remotename/the-branch
@pbailis
pbailis / reproducibility.md
Last active February 15, 2016 12:18
Reproducing (un)reproducibility results

edit: see http://cs.brown.edu/~sk/Memos/Examining-Reproducibility/

Not deserving of a full post, but nonetheless worth writing about: @ongardie, @aalevy, and a few others on Twitter were surprised by the number of papers that were flagged as "not reproducible" according to the recent study at http://reproducibility.cs.arizona.edu. Digging deeper, it appeared that 1.) "code builds" is the standard for reproducibility in this study and that 2.) many broken builds were the result of missing dependencies on the researchers' systems.

I tried reproducing a few of the authors' "unreproducible" results. It's hard to vet 600+ research code repositories, but, with a little effort (< ~10 minutes each?), I was able to get all of the following to actually build (on Ubuntu 13.10). This doesn't inspire confidence in the reproducibility of the study results.

Peter pbailis@cs.berkeley.edu