Skip to content

Instantly share code, notes, and snippets.

View lebinh's full-sized avatar

Binh Le lebinh

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<!DOCTYPE html>
<svg width="800" height="500"><g transform="translate(350,50)"></g></svg>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
var formatPercent = d3.format(".0%"),
formatNumber = d3.format(".0f");
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
$ curl -v
* Trying
* Connected to ( port 80 (#0)
> GET /static/test/gzip.txt HTTP/1.1
> Host:
> User-Agent: curl/7.53.1
> Accept: */*
< HTTP/1.1 200 OK

Keybase proof

I hereby claim:

  • I am lebinh on github.
  • I am 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:

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:
lebinh /
Created May 20, 2013 08:31
Mirth Connect channel test framework prototype
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.util.JavaScriptUtil;
lebinh / gist:752944
Created December 23, 2010 13:03
Collect and plot gold prices from SBJ site
#!/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