2012-06-14 聚會手記
H4 聚會共筆 http://pad.hackingthursday.org
peter
How To Get A List Of Open Windows On The Unity Panel
http://www.webupd8.org/2012/06/how-to-get-list-of-open-windows-on.html#more
amos
Sphinx 文件產生器
1. install sphinx:
$ sudo pip install sphinx
2. into your code folder
3. configure sphinx
$ sphinx-quickstart
4. edit index page by reStructuredText syntax
$ nano index.rst
5. build html file
$ make html
LCamel
live@localhost ~ $ diff -Naur <(echo -e '1\n2') <(echo -e '1\n2\n3')
--- /dev/fd/63 2012-06-14 21:25:07.531129164 +0800
+++ /dev/fd/62 2012-06-14 21:25:07.532129144 +0800
@@ -1,2 +1,3 @@
1
2
+3
Mat
#!/usr/bin/env bash
function pipe_in_python() {
python -c "$(cat <<EOPY
import sys
for line in sys.stdin:
print line.replace( 'asdf', 'ASDF' ),
EOPY
)"
}
echo "asdf.asdf.asdf.e" | pipe_in_python | cut -c5-15
p.s. Thanks to Thinker, hychen, and LCamel's feedback