Skip to content

Instantly share code, notes, and snippets.

View louh's full-sized avatar
🏖️
Sipping jippers on a beach somewhere

Lou Huang louh

🏖️
Sipping jippers on a beach somewhere
View GitHub Profile
@louh
louh / data.json
Last active August 29, 2015 13:57
World Bank Indicator Test 01
[
{
"indicator_name": "Pregnant women receiving antenatal care",
"project_name": "AF: Strengthening Health Activities",
"project_id": "P112446",
"theme": "Health",
"status": "Active",
"units": "number",
"baseline": {
"date": "2009-07-01",
@louh
louh / 0_reuse_code.js
Created June 6, 2014 17:36
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@louh
louh / server.js
Created June 30, 2014 20:09
node server.js
var PORT = 3000,
express = require('express'),
path = require('path')
var app = express()
app.set('port', process.env.PORT || PORT)
app.all('*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
@louh
louh / gist:952944677c63b2c6952e
Created May 3, 2015 21:14
Peet's Coffees by me
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@louh
louh / W3WCOMBO.TXT
Created July 19, 2015 01:25
Interesting what3words combinations
international.space.station - Middle of nowhere in Western Australia
@louh
louh / lrm-valhalla-simple.html
Last active August 29, 2015 14:26
Minimum viable implementation of LRM-Valhalla
<!DOCTYPE html>
<html>
<head>
<title>Simple Valhalla-backed Leaflet Routing Machine</title>
<link rel='stylesheet' href='//cdn.leafletjs.com/leaflet-0.7.3/leaflet.css'>
<link rel='stylesheet' href='./node_modules/lrm-valhalla/examples/leaflet.routing.valhalla.css'>
<script src='//cdn.leafletjs.com/leaflet-0.7.3/leaflet.js'></script>
<script src='./node_modules/leaflet-routing-machine/dist/leaflet-routing-machine.js'></script>
<script src='./node_modules/lrm-valhalla/dist/lrm-valhalla.js'></script>
<style>
@louh
louh / gist:b192e3f2258d299b55e0
Created August 23, 2015 03:30
A wonderful paragraph generalizable to "technology for X"
https://blog.ethereum.org/2015/04/13/visions-part-1-the-value-of-blockchain-technology/
Hence, there is substantial hope for a future that can be, to a substantial degree, more decentralized; however, the days of easy gains are over. Now is the time for a much harder, and longer, slog of looking into the real world, and seeing how the technologies that we have built can actually benefit the world. During this stage, we will likely discover that at some point we will hit an inflection point, where most instances of “blockchain for X” will be made not by blockchain enthusiasts looking for something useful to do, coming upon X, and trying to do it, but rather by X enthusiasts who look at blockchains and realize that they are a fairly useful tool for doing some part of X. Whether X is internet of things, financial infrastructure for the developing world, bottom-up social, cultural and economic institutions, better data aggregation and protection for healthcare, or simply controversial charities and uncensorable m
@louh
louh / left hand drive countries
Last active December 17, 2015 22:18
List of jurisdictions (76 countries, territories, and dependencies) - source: http://en.wikipedia.org/wiki/Right-_and_left-hand_traffic#Jurisdictions_with_left-hand_traffic
jurisdictions,country_code
Alderney,GG
Anguilla,AI
Antigua and Barbuda,AG
Australia,AU
Bahamas,BS
Bangladesh,BD
Barbados,BB
Bermuda,BM
Bhutan,BT
Seq. No. 2007 NAICS US Code 2007 NAICS US Title
1 11 Agriculture, Forestry, Fishing and Hunting
2 111 Crop Production
3 1111 Oilseed and Grain Farming
4 11111 Soybean Farming
5 111110 Soybean Farming
6 11112 Oilseed (except Soybean) Farming
7 111120 Oilseed (except Soybean) Farming
8 11113 Dry Pea and Bean Farming
9 111130 Dry Pea and Bean Farming
body * {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
body *:hover {
-webkit-transform: rotate(180deg);
-moz-transform: rotate(180deg);