Skip to content

Instantly share code, notes, and snippets.

View kuno's full-sized avatar

kuno kuno

View GitHub Profile
{"_id":"kuno","_rev":"25-320ebef31ff8f74f5220780873ecf5c4","github":{"id":161327,"name":"kuno","login":"kuno","email":"kuno@wiredcraft.com"},"avatar":"https://avatars.githubusercontent.com/u/161327?v=2","name":"kuno","email":"kuno@wiredcraft.com","$emails":[{"email":"kuno.the.developer@gmail.com","primary":true,"verified":true}],"$emails|updated":1411544216,"$prefs":{"onboarding_steps":[true,true,false],"onboarding":"done","wizard_progress":{"profile":-1}},"$stripe":{"plan":"devops_bootstrap","customerId":"cus_4pq1WeNWwR385c","subscriptionId":"sub_4pq16oKKrzeNSb","cancelled":true,"subscription":{"date":1411553775,"id":"in_4psZ79YQaoEatA","period_start":1411553775,"period_end":1411553775,"lines":{"object":"list","total_count":2,"has_more":false,"url":"/v1/invoices/in_4psZ79YQaoEatA/lines","data":[{"id":"ii_4psYRHZM1j6dKP","object":"line_item","type":"invoiceitem","livemode":false,"amount":-99638,"currency":"usd","proration":true,"period":{"start":1411553708,"end":1411553708},"quantity":1,"plan":{"interval":"mo
@kuno
kuno / index.html
Last active August 29, 2015 14:19
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<div id="map"></div>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script src="http://api.tiles.mapbox.com/mapbox.js/v1.0.3/mapbox.js"></script>
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.0.3/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
@kuno
kuno / data.json
Created April 15, 2015 07:47
Example to show how store adminlevel2 poverty data in data.json
{"indicators": {"SI.POV.URHC": {"source": "World Bank, Global Poverty Working Group. Data are based on World Bank's country poverty assessments and country Poverty Reduction Strategies.", "fullname": "Urban poverty headcount ratio at national poverty lines (% of urban population)", "shortname": "Urban poverty headcount ratio at national poverty lines", "id": "SI.POV.URHC", "description": "World Bank, Global Poverty Working Group. Data are compiled from official government sources or are computed by World Bank staff using national (i.e. country\u2013specific) poverty lines."}, "SI.POV.NAHC": {"source": "World Bank, Global Poverty Working Group. Data are based on World Bank's country poverty assessments and country Poverty Reduction Strategies.", "fullname": "Poverty headcount ratio at national poverty lines (% of population)", "shortname": "Poverty headcount ratio at national poverty lines", "id": "SI.POV.NAHC", "description": "World Bank, Global Poverty Working Group. Data are compiled from official governmen
@kuno
kuno / data.json
Created April 16, 2015 04:31
data.json with correct adminlevel2 code
{"indicators": {"SI.POV.URHC": {"source": "World Bank, Global Poverty Working Group. Data are based on World Bank's country poverty assessments and country Poverty Reduction Strategies.", "fullname": "Urban poverty headcount ratio at national poverty lines (% of urban population)", "shortname": "Urban poverty headcount ratio at national poverty lines", "id": "SI.POV.URHC", "description": "World Bank, Global Poverty Working Group. Data are compiled from official government sources or are computed by World Bank staff using national (i.e. country\u2013specific) poverty lines."}, "SI.POV.NAHC": {"source": "World Bank, Global Poverty Working Group. Data are based on World Bank's country poverty assessments and country Poverty Reduction Strategies.", "fullname": "Poverty headcount ratio at national poverty lines (% of population)", "shortname": "Poverty headcount ratio at national poverty lines", "id": "SI.POV.NAHC", "description": "World Bank, Global Poverty Working Group. Data are compiled from official governmen
@kuno
kuno / data.json
Created April 16, 2015 05:03
data.json that removed incorrect values
{"indicators": {"SI.POV.URHC": {"source": "World Bank, Global Poverty Working Group. Data are based on World Bank's country poverty assessments and country Poverty Reduction Strategies.", "fullname": "Urban poverty headcount ratio at national poverty lines (% of urban population)", "shortname": "Urban poverty headcount ratio at national poverty lines", "id": "SI.POV.URHC", "description": "World Bank, Global Poverty Working Group. Data are compiled from official government sources or are computed by World Bank staff using national (i.e. country\u2013specific) poverty lines."}, "SI.POV.NAHC": {"source": "World Bank, Global Poverty Working Group. Data are based on World Bank's country poverty assessments and country Poverty Reduction Strategies.", "fullname": "Poverty headcount ratio at national poverty lines (% of population)", "shortname": "Poverty headcount ratio at national poverty lines", "id": "SI.POV.NAHC", "description": "World Bank, Global Poverty Working Group. Data are compiled from official governmen
@kuno
kuno / deploy
Last active August 29, 2015 14:23
The mm-web deploy script that working for local development
#!/bin/bash
# Update nginx config
sed -e "s#MEDIA_ROOT#$MEDIA_ROOT#g" \
-e "s#STATIC_ROOT#$STATIC_ROOT#g" \
/etc/nginx/conf.d/default.conf.tpl > /etc/nginx/conf.d/default.conf
install_requirements() {
for requirement in requirement*
do
@kuno
kuno / PKGBUILD
Created November 8, 2010 06:47
Make font-manager working with python2.7
# Contributor: Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
# Contributor: Guan 'kuno' Qing <neokuno AT gmail DOT com>
pkgname=font-manager
pkgver=0.5.6
pkgrel=1
pkgdesc="A font management application for the GNOME desktop"
url="http://code.google.com/p/font-manager/"
arch=('i686' 'x86_64')
license=('GPL')
# Maintainer: James Campos <james.r.campos@gmail.com>
# Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
# Contributor: Dongsheng Cai <dongsheng at moodle dot com>
# Contributor: Masutu Subric <masutu.arch at googlemail dot com>
# Contributor: TIanyi Cui <tianyicui@gmail.com>
pkgname=nodejs
pkgver=0.3.1
pkgrel=1
pkgdesc="Evented I/O for V8 javascript"
arch=('i686' 'x86_64')
@kuno
kuno / PKGBUILD
Created November 28, 2010 02:22
PKGBUILD for desktopcouch
# Contributor: Roberto Alsina <ralsina@kde.org>
# Contributor: Guan 'kunp' Qing <neokuno AT gmail DOT com>
pkgname=desktopcouch
pkgver=0.6.8
pkgrel=4
pkgdesc="A desktop implementation of couchdb"
arch=('any')
url="https://launchpad.net/desktopcouch"
license=('LGPL')
@kuno
kuno / PKGBUILD
Created November 28, 2010 02:12
python-couchdb PKGBUILD
# Contributor: Byron Clark <byron@theclarkfamily.name>
# Contributor: Guan 'kuno' Qing <neokuno AT gmail DOT com>
pkgname=python-couchdb
pkgver=0.8
pkgrel=2
pkgdesc="Python library for working with CouchDB"
url="http://code.google.com/p/couchdb-python/"
license=('BSD')
arch=(any)