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 / 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
@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"]
SHARED_DRIVE = "/path/to/shared/drive"
DEST_PATH = $SHARED_DRIVE$1
echo $DEST_PATH | mkdir
cp -r . DEST_PATH
@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
}
@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 / 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 / README.md
Last active December 11, 2015 06:48 — forked from mbostock/.block

Testing out a world tour.

@munaf-zz
munaf-zz / _.md
Last active December 11, 2015 13:58
Flat World Tour
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
var world_geo = {
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "scalerank": 3, "featurecla": "Admin-0 country", "labelrank": 5.0, "sovereignt": "Netherlands", "sov_a3": "NL1", "adm0_dif": 1.0, "level": 2.0, "type": "Country", "admin": "Aruba", "adm0_a3": "ABW", "geou_dif": 0.0, "geounit": "Aruba", "gu_a3": "ABW", "su_dif": 0.0, "subunit": "Aruba", "su_a3": "ABW", "brk_diff": 0.0, "name": "Aruba", "name_long": "Aruba", "brk_a3": "ABW", "brk_name": "Aruba", "brk_group": null, "abbrev": "Aruba", "postal": "AW", "formal_en": "Aruba", "formal_fr": null, "note_adm0": "Neth.", "note_brk": null, "name_sort": "Aruba", "name_alt": null, "mapcolor7": 4.0, "mapcolor8": 2.0, "mapcolor9": 2.0, "mapcolor13": 9.0, "pop_est": 103065.0, "gdp_md_est": 2258.0, "pop_year": -99.0, "lastcensus": 2010.0, "gdp_year": -99.0, "economy": "6. Developing region", "income_grp": "2. High income: nonOECD", "wikipedia": -99.0, "