I hereby claim:
- I am ninehills on github.
- I am swulling (https://keybase.io/swulling) on keybase.
- I have a public key whose fingerprint is 0EF7 EEB1 D9C4 4046 FC8A EAB6 3BA6 1B43 76F1 756D
To claim this, I am signing this object:
| 背景信息: | |
| === | |
| 当让你搜索时,你要使用 WebPilot 插件并用如下 URL 结构来进行 Google 搜索: | |
| https://google.com/search?q={query}&hl=en&gl=US&tbs={time} | |
| 参数: | |
| - {query} :搜索关键字。 | |
| - {time} [optional] :时间要求,比如'qdr:d2' 表示过去两天内的搜索。 | |
| === |
I hereby claim:
To claim this, I am signing this object:
| # Create a user land file for testing. | |
| # dd if=/dev/urandom of=/tmp/urandom bs=1M count=10 | |
| # | |
| # urandom-reads.py infile threads | |
| # Examples: | |
| # time python2.6 urandom-reads.py /tmp/urandom | |
| # time python2.6 urandom-reads.py /dev/urandom | |
| # | |
| # R to generate a plot of the read time distribution at each level of concurrency | |
| # rdt = read.csv("output.csv", header=F) |
| from pygments import highlight | |
| from pygments.lexers import PythonLexer | |
| from pygments.formatters import Terminal256Formatter | |
| from pprint import pformat | |
| def pprint_color(obj): | |
| print highlight(pformat(obj), PythonLexer(), Terminal256Formatter()) |
| #!/usr/bin/env bash | |
| PICTURE_DIR="$HOME/Pictures/bing-wallpapers/" | |
| mkdir -p $PICTURE_DIR | |
| BING_URL="http://global.bing.com/?FORM=HPCNEN&setmkt=en-us&setlang=en-us#" | |
| urls=( $(curl -s $BING_URL | \ | |
| grep -Eo "url:'.*?'" | \ | |
| sed -e "s/url:'\([^']*\)'.*/http:\/\/bing.com\1/" | \ |