Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View LeoMcA's full-sized avatar

Leo McArdle LeoMcA

View GitHub Profile
@nathggns
nathggns / results.json
Last active August 29, 2015 14:20
Results of the 2015 UK General Election (taken from the BBC Website)
{
"Aberavon": [
{
"name": "(LAB)",
"votes": 15416,
"share": 0.48
},
{
"name": "(UKIP)",
"votes": 4971,
@taldanzig
taldanzig / gitpushpull.md
Created January 23, 2013 06:38
Make push/pull work with a remote non-bare repository

Make push/pull work with a remote non-bare repository

Sometimes it is necessary (and desireable) to work on a git repository on multiple development machines. We want to be able to push and pull between repositories without having to use an intermediary bare repository, and for this to work symetrically in both repositories.

First clone we clone an existing repository:

git clone ssh://user@hostname:/path/to/repo

By default this will name the remote as origin, but let's assume we want to reserve that name for a master repository that commits will eventually get pushed to:

@fuzzyfox
fuzzyfox / LICENSE
Last active November 28, 2022 19:53
Average Colour of Background
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE