Skip to content

Instantly share code, notes, and snippets.

View xatier's full-sized avatar
🍰
吃點心

xatier xatier

🍰
吃點心
  • ド田舎
View GitHub Profile
#!/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
#!/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)
#!/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)
# 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)'
10/15
18:30 - 19:30
apua pyhton
data type
control flow
list comprehension
functions
generator
import modules
class
#!/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)
http://www.youtube.com/watch?v=RAbD3AGFX6I
交大網路改善方案是什麼呢
我們真的希望用幾句簡單的話讓大家了解
但是啊
幾句簡單的話
實在無法說明這麼多的政策
因為
改善(修復)網路需要很完整的規劃
網路才能動的起來
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(能裝都先裝)
! Urxvt {{{
! color settings
URxvt*termName: rxvt-256color
URxvt*depth: 32
URxvt*background: black
URxvt*foreground: green
Urxvt*underlineurls: true
! scroll
URxvt*scrollstyle: plain
@xatier
xatier / gist:4316115
Created December 17, 2012 06:02
小黃 PL 2012 HW3 proof
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