Skip to content

Instantly share code, notes, and snippets.

View gonghao's full-sized avatar
😂
Nothing

Howtin gonghao

😂
Nothing
View GitHub Profile
@gonghao
gonghao / chnroute.sh
Created January 22, 2015 07:17
chnroute
curl 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | grep ipv4 | grep CN | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > chnroute.txt
@gonghao
gonghao / dabblet.css
Last active August 29, 2015 14:11
Untitled
* { margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #000; text-align: center; }
body:before { content: ""; height: 100%; display: inline-block; vertical-align: middle; }
.spi-logo { display: inline-block; width: 400px; fill: #fff; vertical-align: middle; }
@media (max-width: 410px) {
.spi-logo { width: 70%; }
}
@gonghao
gonghao / dabblet.css
Created December 15, 2014 09:00
Untitled
html, body { height: 100%; }
body { background: #000; text-align: center; }
body:before { content: ""; height: 100%; display: inline-block; vertical-align: middle; }
.spi-logo { display: inline-block; width: 100px; height: 100px; fill: #fff; }
@gonghao
gonghao / dabblet.css
Created December 15, 2014 09:00
Untitled
html, body { height: 100%; }
body { background: #000; text-align: center; }
body:before { content: ""; height: 100%; display: inline-block; vertical-align: middle; }
.spi-logo { display: inline-block; width: 100px; height: 100px; fill: #fff; }
@gonghao
gonghao / dabblet.css
Created December 15, 2014 09:00
Untitled
html, body { height: 100%; }
body { background: #000; text-align: center; }
body:before { content: ""; height: 100%; display: inline-block; vertical-align: middle; }
.spi-logo { display: inline-block; width: 100px; height: 100px; fill: #fff; }
@gonghao
gonghao / dabblet.css
Last active August 29, 2015 14:06
Untitled
* { margin: 0; padding: 0; }
.winner-list { list-style: none; }
.winner-item { overflow: hidden; padding-bottom: 15px; }
.winner-item h3 { float: left; font-size: 14px; }
.winner-item table { font-weight: bold; }
.winner-item td { width: 7em; }
@gonghao
gonghao / dabblet.css
Last active August 29, 2015 14:05
Untitled
h2 {
font-size: 22px;
}
.inline-block {
font-size: 0;
}
.inline-block > span {
font-size: 14px;
display: inline-block;
find . "(" -name "*.m" -or -name "*.mm" -or -name "*.cpp" ")" -print0 | xargs -0 wc -l
.weixin-download-bg {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
}
.weixin-download-tips {
@gonghao
gonghao / dabblet.css
Created March 14, 2014 07:43
Untitled
.icon-arrow {
position: absolute;
left: 20px;
top: 20px;
width: 0;
height: 0;
border-style: solid;
border-color: transparent;
border-width: 10px 5px;
border-left-color: #000;