時間:10/02(日)1:30pm 地點:八德94 出席:Denny、雁子、工藤、Deemo、Elantris、慈吟、阿吉、PCC、Jeremy、Pellaeon、全全、育慈、ㄅㄌ、阿貓 線上:阿哲、YOGA、大倫、下午、小學生、YOYO
社群版本:
Usage / 使用方法
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/env python3 | |
import requests | |
import re | |
def fetch(url): | |
if url.startswith('/'): | |
url = 'http://www.oia.ntu.edu.tw' + url | |
request = requests.get(url) | |
request.encoding = 'utf8' | |
return request.text |
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
[user] | |
name = Poren Chiang | |
email = <EMAIL> | |
[color] | |
ui = true | |
[alias] | |
tree = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
keepup = !git checkout $2 && git merge $1 && git push && git push origin $2 && git checkout $1 && echo | |
on = commit -m | |
themall = commit -a -m |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme version="1.0" name="Monokai"> | |
<style name="Text" foreground="#f8f8f2" background="#272822"/> | |
<style name="Link" foreground="#66d9ef"/> | |
<style name="Selection" background="#49483e"/> | |
<style name="LineNumber" foreground="#8d9089"/> | |
<style name="SearchResult" foreground="#000000" background="#ffe792"/> | |
<style name="SearchScope" foreground="#000000" background="#ffe792"/> | |
<style name="Parentheses"/> | |
<style name="CurrentLine" background="#3e3d32"/> |
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
PING www.ntu.edu.tw (140.112.8.116): 56 data bytes | |
64 bytes from 140.112.8.116: icmp_seq=0 ttl=252 time=1.391 ms | |
64 bytes from 140.112.8.116: icmp_seq=1 ttl=252 time=1.454 ms | |
64 bytes from 140.112.8.116: icmp_seq=2 ttl=252 time=3.527 ms | |
64 bytes from 140.112.8.116: icmp_seq=3 ttl=252 time=2.484 ms | |
64 bytes from 140.112.8.116: icmp_seq=4 ttl=252 time=2.231 ms | |
64 bytes from 140.112.8.116: icmp_seq=5 ttl=252 time=2.272 ms | |
Request timeout for icmp_seq 6 | |
64 bytes from 140.112.8.116: icmp_seq=7 ttl=252 time=15.965 ms | |
64 bytes from 140.112.8.116: icmp_seq=8 ttl=252 time=1.537 ms |
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
internal encoding: nil | |
external encoding: #<Encoding:UTF-8> | |
rel_path encoding: #<Encoding:UTF-8> | |
string encoding: #<Encoding:UTF-8> | |
FS encoding: UTF-8 | |
internal encoding: nil | |
external encoding: #<Encoding:UTF-8> | |
rel_path encoding: #<Encoding:UTF-8> | |
string encoding: #<Encoding:UTF-8> | |
FS encoding: UTF-8 |
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 | |
# sudo pip install zipcodetw | |
from codecs import open | |
import zipcodetw | |
i = open('address.txt', 'r', encoding='utf-8') | |
o = open('address_a.txt', 'w+', encoding='utf-8') | |
for addr in i: |

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
<?php | |
require_once APPLICATION_PATH . '/modules/staff/controllers/BallotController.php'; | |
/** | |
* 新生遷出住宿抽籤 | |
* | |
* @author Kim | |
* | |
*/ | |
class Staff_BallotNewMoveController extends Staff_BallotController |