Skip to content

Instantly share code, notes, and snippets.

View lidaobing's full-sized avatar
🦍
Mammal - verified by Github

LI Daobing lidaobing

🦍
Mammal - verified by Github
View GitHub Profile
$ curl -I 'http://tratao.qiniudn.com/%E6%96%B0/%E8%B7%AF%E5%BE%84/%E6%B5%8B%E8%AF%95/b2ecdc1df1e8491e438f6b6d5461401c.png?token=CvR8Laj1amUwLtt25LbbYrUB4MhI2EKjbW9vqIwx:pvbLd5H4euFRAasZSqUn0EAgzmk=:eyJTIjoidHJhdGFvLnFpbml1ZG4uY29tL-aWsC_ot6_lvoQv5rWL6K-VL2IyZWNkYzFkZjFlODQ5MWU0MzhmNmI2ZDU0NjE0MDFjLnBuZyIsIkUiOjEzOTY5NjQ1OTJ9'
HTTP/1.1 200 OK
Date: Mon, 07 Apr 2014 13:43:57 GMT
Server: nginx/1.4.4
Content-Type: image/png
Content-Length: 83886
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
Cache-Control: public, max-age=31536000
Content-Disposition: inline; filename="b2ecdc1df1e8491e438f6b6d5461401c.png"
lidaobing@Lis-MacBook-Pro service (issue_7683) $ curl -I 'http://tratao.qiniudn.com/d895d2749ef24aee77e63cfb773b0c48.png?e=1396882179&token=CvR8Laj1amUwLtt25LbbYrUB4MhI2EKjbW9vqIwx:zH1Pj8OcLJ9eTj46LkJzmZoo3yc'
HTTP/1.1 200 OK
Date: Mon, 07 Apr 2014 13:50:43 GMT
Server: nginx/1.4.4
Content-Type: image/png
Content-Length: 83886
Accept-Ranges: bytes
Access-Control-Allow-Origin: *
Cache-Control: public, max-age=31536000
$ host tratao.qiniudn.com
tratao.qiniudn.com is an alias for wsall.qiniudn.com.wscdns.com.
wsall.qiniudn.com.wscdns.com is an alias for 08911.xdwscache.glb0.lxdns.com.
08911.xdwscache.glb0.lxdns.com has address 122.227.2.87
08911.xdwscache.glb0.lxdns.com has address 58.216.21.99
08911.xdwscache.glb0.lxdns.com has address 115.231.84.89
08911.xdwscache.glb0.lxdns.com has address 122.226.185.94
08911.xdwscache.glb0.lxdns.com has address 122.228.115.103
lidaobing@lis-macbook-pro deploy (issue_8164) $ curl -I http://www.ubuntu.com/
HTTP/1.1 302 Found
Date: Sun, 20 Apr 2014 13:03:12 GMT
Server: Apache/2.2.22 (Ubuntu)
Location: http://www.ubuntu.com/index_kylin
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1
lidaobing@lis-macbook-pro deploy (issue_8164) $ tsocks curl -I http://www.ubuntu.com/
HTTP/1.1 200 OK
$ java -jar Resources/Java/NoteDup.jar
Exception in thread "Thread-13" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
at com.evernote.thrift.transport.THttpClient.write(THttpClient.java:111)
at com.evernote.thrift.protocol.TBinaryProtocol.writeBinary(TBinaryProtocol.java:216)
at com.evernote.thrift.protocol.TProtocol.writeBinary(TProtocol.java:123)
at com.evernote.edam.type.Data.write(Data.java:306)
at com.evernote.edam.type.Resource.write(Resource.java:848)
at com.evernote.edam.type.Note.write(Note.java:1214)
qboxserver@nb5:~$ curl -v 'http://www.buxuxiao.net/wp-content/uploads/2014/05/5370331b5b8d2215.jpgcover.jpg'
* About to connect() to www.buxuxiao.net port 80 (#0)
* Trying 42.121.43.98... connected
* Connected to www.buxuxiao.net (42.121.43.98) port 80 (#0)
> GET /wp-content/uploads/2014/05/5370331b5b8d2215.jpgcover.jpg HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Host: www.buxuxiao.net
> Accept: */*
>
< HTTP/1.1 302 Redirct
$ go run 13.go
main.A{A:0}
main.A{A:0}
main.A{A:1}
(*main.A)(nil)
(*main.A)(nil)
&main.A{A:1}
✔✓√☑
字体: https://code.google.com/p/ifont/downloads/detail?name=H-SiuNiu3.2.7z&can=2&q=
字牌:🀀🀁🀂🀃🀄🀅🀆
萬子:🀇🀈🀉🀊🀋🀌🀍🀎🀏
索字:🀐🀑🀒🀓🀔🀕🀖🀗🀘
筒子:🀙🀚🀛🀜🀝🀞🀟🀠🀡
花牌:🀢🀣🀤🀥🀦🀧🀨🀩🀪
#include <iostream>
#include <vector>
#include <sstream>
#include <cstdio>
#include <set>
using namespace std;
#define FORI for(int i = 0; i < n; ++i)
#define FORJ for(int j = 0; j < n; ++j)
@lidaobing
lidaobing / iso-codes-merge.py
Created September 8, 2010 12:20
iso-codes-merge.py
#!/usr/bin/env python
import sys
import os
import logging
import tempfile
import urllib
import subprocess
lang2Name = {'af': 'Afrikaans',