Skip to content

Instantly share code, notes, and snippets.

View reubano's full-sized avatar

Reuben Cummings reubano

View GitHub Profile
@reubano
reubano / count_votes
Last active June 20, 2017 15:36
Voting script and sample ballot file used for [Open Data Day Arusha 2017](https://www.reubano.xyz/blog/arusha-s-first-open-data-day/)
#!/usr/bin/env python2
#
import csv, sys
from io import open
from collections import defaultdict
from pyvotecore.schulze_stv import SchulzeSTV
notation = SchulzeSTV.BALLOT_NOTATION_RANKING
@reubano
reubano / Digital Project - Development Contract - Agency (or Company) to Freelancer.md Example contract for use by Creative, Digital and Marketing Agencies (or any company for that matter) to use when contracting a Freelance Web Developer on digital projects.

I've shared this contact for use by Creative, Digital and Marketing Agencies (or any company for that matter) to use when contracting a Freelance Web Developer on digital projects. Feel free to fork, amend and use for your own projects however please be nice and credit where credit is due and take a note of the disclaimer on this document.

My aim is to create a realistic, agreeable contract with as little unreadable jargon as possible. Hopefully this example contract achieves that and is useful to you, feel free to comment so I can amend.

PS: feel free to remove this section (of course) when using in your final docs.


 

@reubano
reubano / Contract Killer 3.md
Last active October 17, 2016 08:03 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web professionals by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: March 15th 2016
  • Original post

Markdown example

Markdown let's you do stuff like:

  • make bold text
  • or write in italics
  • and even strikethrough
@reubano
reubano / riko_readme.rst
Last active June 14, 2016 10:29
riko readme
#!/usr/bin/env bash
# Bulk convert shapefiles to geojson using ogr2ogr
# For more information, see http://ben.balter.com/2013/06/26/how-to-convert-shapefiles-to-geojson-for-use-on-github/
#
# usage: geojsonize *.zip
#
# Note: Assumes you're in a folder with one or more zip files containing shape files
# and Outputs as geojson with the crs:84 SRS (for use on GitHub or elsewhere)
@reubano
reubano / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@reubano
reubano / test.rst
Last active December 17, 2015 09:39

prometheus build

image

Introduction

@reubano
reubano / gist:3828627
Created October 3, 2012 17:58
script for packaging php projects for PEAR
cd path/to/project
# create package.xml
pear package-validate
pear package
cp *.tgz path/to/pear/repo
cd path/to/pear/repo
pirum add . [filename].tgz
git add -A
git commit -m 'Add new package'
git push origin gh-pages
@reubano
reubano / rowlingson.R
Created October 12, 2011 12:41
R Choropleth with shape file
###
### Barry Rowlingson, Lancaster University
###
## needed for shapefiles:
require(rgdal)
## needed for colour mapping - not on CRAN:
## http://r-forge.r-project.org/projects/colourscheme/
## try: