Skip to content

Instantly share code, notes, and snippets.

View dotzero's full-sized avatar
:octocat:

dotzero dotzero

:octocat:
View GitHub Profile
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
anonymous
anonymous / SimpleMapReduce.php
Created September 4, 2010 15:09
<?
// For article http://habrahabr.ru/blogs/algorithm/103467/
$words = "foo bar baz bar";
$words_split = explode(" ", $words);
function map1($word) {
return array($word, 1);
};