Skip to content

Instantly share code, notes, and snippets.

# This will give all the ICSE2015/2016 papers filenames extracted from the titles of the PDF metadata,
# and put them in a folder on your desktop. It's been tested on OSX and depends on wget and pdfinfo,
# available via the macports xpdf package on pre-Yosemite OSX, and here for Yosemite users:
#
# ftp://ftp.foolabs.com/pub/xpdf/xpdfbin-mac-3.04.tar.gz
#
# It's a manual install, unfortunately, but I trust you're geared up for that.
#
# The username and password are available from these public-facing pdfs:
# http://atlantis.isti.cnr.it/ICSE2015ProgramBrochureOnLineVersion.pdf (2015 - icse15/conf15)
@drjwbaker
drjwbaker / 2015-03_SSI.md
Last active August 29, 2015 14:17
Software Sustainability Collaborations Workshop, Oxford, 25-27 March 2015

#Software Sustainability Collaborations Workshop, Oxford, 25-27 March 2015

Live notes, so an incomplete, partial record of what actually happened.

http://www.software.ac.uk/cw15


Tags: collabw15

My asides in []

@Zulko
Zulko / zombie_france.py
Last active October 23, 2021 19:05
Zombie pandemic simulation in France
"""
Model of a Zombie outbreak in France, starting in Grenoble
This is a rewrite from this blog post by Max Berrgren:
http://maxberggren.github.io/2014/11/27/model-of-a-zombie-outbreak/
with a different country, a slightly different model, and different
libraries. The map of population density is taken from Wikimedia Commons
command count num_people_using
cd 347893.0 803.0
ls 326227.0 783.0
rm 80394.0 744.0
git 426701.0 696.0
sudo 109042.0 690.0
mkdir 22987.0 655.0
cat 54491.0 642.0
mv 39297.0 640.0
ssh 83035.0 623.0
@samvrlewis
samvrlewis / pre-commit.py
Last active December 18, 2016 03:22
Count words in LaTeX python script
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#-*- mode: python -*-
import subprocess
import os
import phant
THESIS_SECTIONS_DIR = '/Users/Sam/Dropbox/Uni/Thesis/thesis/sections/'
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@snim2
snim2 / gist:8639969
Created January 26, 2014 21:57 — forked from haard/gist:8639666
branch_mapping = [('default', 'master')]
target = "git+ssh://git@github.com/haard/test"
repo = hgapi.Repo(path)
for hgb, gb in branch_mapping:
repo.hg_command('bookmark', '-r', hgb, gb)
repo.hg_command("--config", "paths.default=" + target, "--config", "extensions.hggit=", "push")
@haard
haard / gist:8639666
Created January 26, 2014 21:23
Use hggit and hgapi to push a hg repo to a git mirror
branch_mapping = [('default', 'master')]
target = "git+ssh://git@github.com/haard/test"
repo = hgapi.Repo(path)
for hgb, gb in branch_mapping:
repo.hg_command('bookmark', '-r', hgb, gb)
repo.hg_command("--config", "paths.default=" + target, "--config", "extensions.hggit=", "push")
@schacon
schacon / git-http-proto.txt
Created July 26, 2013 22:16
Git HTTP transport protocol documentation
HTTP transfer protocols
=======================
Git supports two HTTP based transfer protocols. A "dumb" protocol
which requires only a standard HTTP server on the server end of the
connection, and a "smart" protocol which requires a Git aware CGI
(or server module). This document describes both protocols.
As a design feature smart clients can automatically upgrade "dumb"
protocol URLs to smart URLs. This permits all users to have the
anonymous
anonymous / SIMPL 10
Created May 21, 2013 18:19
SIMPL is a simple programming language for Arduino and clones, inspired by Ward Cunningham's Txtzyme. It borrows the "colon definition" from Forth and allows up to 26 new words to be defined. It also plays tunes
// SIMPL
// A Serial Interpreted Minimal Programming Language
// Inspired by Txtzyme - by Ward Cunningham
// SIMPL tries to take you back to an age of computing when things were simple
// So it compiles in under 6K - leaving lots of room for other stuff
// SIMPL allows new words to be defined by preceding them with colon : (Like Forth)