This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
class fraction: | |
def __init__(self, num=0, den=1): | |
self.num = num | |
self.den = den | |
def __str__(self): | |
g = gcd(self.num, self.den) | |
print g |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
class fraction: | |
def __init__(self, num=0, den=1): | |
self.num = num | |
self.den = den | |
def __str__(self): | |
g = gcd(self.num, self.den) | |
return "[%d / %s]" % (self.num/g, self.den/g) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
class fraction: | |
def __init__(self, num=0, den=1): | |
self.num = num | |
self.den = den | |
def __str__(self): | |
g = gcd(self.num, self.den) | |
return "[%d / %s]" % (self.num/g, self.den/g) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# status bar | |
set -g status-utf8 on | |
set -g status-interval 1 | |
set -g status-left-length 60 | |
set -g status-right-length 90 | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left '\o/ #[fg=red]@#H:#S' | |
set -g status-right '#[fg=brightblue]#(uptime)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10/15 | |
18:30 - 19:30 | |
apua pyhton | |
data type | |
control flow | |
list comprehension | |
functions | |
generator | |
import modules | |
class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use 5.012; | |
use warnings; | |
# MD5 Hash Bruteforce Kit | |
# original version by Iman Karim ([email protected]) | |
# http://home.inf.fh-rhein-sieg.de/~ikarim2s/ | |
# modified by xatier (xatierlike @gmail.com) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.youtube.com/watch?v=RAbD3AGFX6I | |
交大網路改善方案是什麼呢 | |
我們真的希望用幾句簡單的話讓大家了解 | |
但是啊 | |
幾句簡單的話 | |
實在無法說明這麼多的政策 | |
因為 | |
改善(修復)網路需要很完整的規劃 | |
網路才能動的起來 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfdisk //切割磁區 | |
mkfs.jfs /磁區 //格式化 | |
mount /磁區 /mnt | |
dhcpcp eth0 | |
wpa_passphrase "Your Router SSID" "Your WPA Key" > /etc/wpa_supplicant.conf | |
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf | |
dhcpcd wlan0 | |
pacstrap /mnt base base-devel vim xorg xorg-xinit gnome gnome-extra(能裝都先裝) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Urxvt {{{ | |
! color settings | |
URxvt*termName: rxvt-256color | |
URxvt*depth: 32 | |
URxvt*background: black | |
URxvt*foreground: green | |
Urxvt*underlineurls: true | |
! scroll | |
URxvt*scrollstyle: plain |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. | |
a) \f.\a.\b.\c.c (f a) (f b) | |
f = t1 | |
a = t2 | |
f a = t3 | |
=> t1 = t2 -> t3 | |
b = t4 | |
f b = t5 |