- R0 Opening
- R0 Keynoye: Making with Python 3 by David Beazley
- R0 Python + NoSQL in the Animations by 官順暉
- R0 懶人と Python と Animation Studio by 郭學聰
$ python -c "import llvm; llvm.test()" | |
llvmpy is installed in: /usr/local/lib/python2.7/dist-packages/llvm | |
llvmpy version: 0.11.2-12-gdb73237 | |
2.7.3 (default, Aug 1 2012, 05:14:39) | |
[GCC 4.6.3] | |
.............................('disable mattrs', '-sse3,-sse41,-sse42,-avx') | |
.('disable mattrs', '-sse41,-sse42,-avx') | |
.('disable mattrs', '-sse42,-avx') | |
.('disable mattrs', '-avx') | |
.Skipping: no AVX |
$ python -c "import numba; numba.test()"Running tests in /usr/local/lib/python2.7/dist-packages/numba/numba | |
ran test files: failed: (2/148) | |
ld: cannot open output file /usr/local/lib/python2.7/dist-packages/numba/tests/compile_with_pycc.so: | |
Permission denied | |
Traceback (most recent call last): |
$ history | awk '{CMD[$2]++;count++;} END { for (a in CMD )print CMD[ a ]" " CMD[ a ]/count*100 "% " a}' | grep -v "./" | column -c 3 -s " " -t | sort -nr | nl | head -n 10 | |
1 229 15.0956% vim | |
2 208 13.7113% sudo | |
3 178 11.7337% ls | |
4 158 10.4153% cd | |
5 84 5.53724% lua | |
6 51 3.3619% pacman | |
7 49 3.23006% git | |
8 36 2.3731% htop | |
9 28 1.84575% startx |
#!/usr/bin/python | |
import random | |
import time | |
class gol: | |
def __init__(self): | |
self._w = 30 # map width | |
self._prob = 0.5 # probability | |
self._map = [] |
# 1 | |
彭文志老師在101學年度總共開了幾門課? | |
SELECT COUNT(C.id) FROM Course C, Professor P WHERE P.name = "彭文志" AND P.id = C.pro_id | |
# 2 | |
資訊工程學系在上學期有幾門不同的課? (課名相同而老師不同視為相同) | |
SELECT COUNT(DISTINCT C.name) FROM Course C, Department D WHERE D.name = "資訊工程學系" AND D.id = C.department AND C.year = '1' |
#!/usr/bin/env perl | |
use 5.014; | |
use WWW::Mechanize; | |
use List::MoreUtils qw(uniq); | |
# iframe printer | |
sub iframe_p { | |
my ($title, $id, $url) = @_; |
#!/usr/bin/env perl | |
use 5.014; | |
use WWW::Mechanize; | |
use List::MoreUtils qw(uniq); | |
# XXX: change me! | |
my $url = "625301/282f4c93aa/"; |