Instantly share code, notes, and snippets.

View vn-provinces-topo.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View literacy.tsv
province rate
CẢ NƯỚC 95.0
Đồng bằng sông Hồng 98.3
Hà Nội 98.7
Vĩnh Phúc 98.2
Bắc Ninh 97.5
Quảng Ninh 97.4
Hải Dương 98.5
Hải Phòng 98.1
Hưng Yên 98.3
View key.html
<!DOCTYPE html>
<svg width="800" height="500"><g transform="translate(350,50)"></g></svg>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-color.v1.min.js"></script>
<script src="https://d3js.org/d3-interpolate.v1.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script>
var formatPercent = d3.format(".0%"),
formatNumber = d3.format(".0f");
View mat-do-dan-so.csv
province density
CẢ NƯỚC 280.0
Đồng bằng sông Hồng 994.0
Hà Nội 2182.0
Vĩnh Phúc 863.0
Bắc Ninh 1432.0
Quảng Ninh 198.0
Hải Dương 1070.0
Hải Phòng 1268.0
Hưng Yên 1258.0
View gist:a4f6b533682aac8334b2862604cffc36
$ curl -v origin.luameter.com/static/test/gzip.txt
* Trying 104.236.56.31...
* TCP_NODELAY set
* Connected to origin.luameter.com (127.0.0.1) port 80 (#0)
> GET /static/test/gzip.txt HTTP/1.1
> Host: origin.luameter.com
> User-Agent: curl/7.53.1
> Accept: */*
>
< HTTP/1.1 200 OK
View keybase.md

Keybase proof

I hereby claim:

  • I am lebinh on github.
  • I am lebinh (https://keybase.io/lebinh) on keybase.
  • I have a public key whose fingerprint is EDBD 0023 CF13 0C78 5284 D56A 2DC6 CE2E 2BF0 7D16

To claim this, I am signing this object:

View evernote_challenge
from collections import Counter, deque
import sys
__author__ = 'binhle'
def next_line(stream, skip_blank_line=True, recursive_level=0, max_recursive_level=2):
" Read next line from input, skip blank line if needed. "
line = stream.readline().strip()
if line or not skip_blank_line:
View BaseChannelTestCase.java
import com.mirth.connect.model.Channel;
import com.mirth.connect.model.Connector;
import com.mirth.connect.model.Filter;
import com.mirth.connect.model.Transformer;
import com.mirth.connect.model.converters.IXMLSerializer;
import com.mirth.connect.model.converters.ObjectXMLSerializer;
import com.mirth.connect.model.converters.SerializerFactory;
import com.mirth.connect.server.builders.JavaScriptBuilder;
import com.mirth.connect.server.util.JavaScriptUtil;
View gist:752944
#!/usr/bin/env python
import re
import urllib2
from datetime import date, timedelta
import matplotlib.pyplot as plt
last_buy_price = 0
last_sell_price = 0