Skip to content

Instantly share code, notes, and snippets.

View munaf-zz's full-sized avatar

Munaf Assaf munaf-zz

View GitHub Profile
@munaf-zz
munaf-zz / README.md
Last active December 11, 2015 06:48 — forked from mbostock/.block

Testing out a world tour.

@munaf-zz
munaf-zz / README.md
Created November 15, 2012 00:18
Better section edit links for Wikipedia

Copy/paste these into your common.js and common.css in Wikipedia.

This script will display section edit links in a more noticeable way upon hover. The section you're actually editing will be highlighted as well.

Note: This is a poorly done hack. A better solution is forthcoming.

@munaf-zz
munaf-zz / dashboard.js
Created September 27, 2012 23:30
E3 Dashboard
// Schema
/*
{
article: "Doubling time"
logged_in: false
revision: 511007853
timestamp: 1347458208000
wiki: "enwiki"
__proto__: Object
}
@munaf-zz
munaf-zz / dashboard.js
Created September 12, 2012 14:12
Cubism Wikipedia Dashboard
// Schema
/*
{
article: "Doubling time"
logged_in: false
revision: 511007853
timestamp: 1347458208000
wiki: "enwiki"
__proto__: Object
}
SHARED_DRIVE = "/path/to/shared/drive"
DEST_PATH = $SHARED_DRIVE$1
echo $DEST_PATH | mkdir
cp -r . DEST_PATH
@munaf-zz
munaf-zz / .gitconfig
Created August 27, 2012 19:27
git config for wmf gerrit setup
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://gerrit.wikimedia.org/mediawiki/extensions/E3Experiments
[branch "master"]
@munaf-zz
munaf-zz / ledstrip.ino
Created May 21, 2012 18:38
Arduino LED Strip + Microphone
#include <ledcontroller.h>
using LedController::Color;
using LedController::LedStrip;
using LedController::Interval;
Color orange(0xFF6600);
Color prettyblue(0x6FBAFC);
#define COL_PRETTYBLUE 0x6FBAFC