Skip to content

Instantly share code, notes, and snippets.

View rschiang's full-sized avatar
🐳
Sailing

Poren Chiang rschiang

🐳
Sailing
View GitHub Profile
@rschiang
rschiang / 2017_2th.md
Created October 2, 2016 15:30
SITCON 2017 二籌會議記錄備份

SITCON 2017 二籌

時間:10/02(日)1:30pm 地點:八德94 出席:Denny、雁子、工藤、Deemo、Elantris、慈吟、阿吉、PCC、Jeremy、Pellaeon、全全、育慈、ㄅㄌ、阿貓 線上:阿哲、YOGA、大倫、下午、小學生、YOYO


@rschiang
rschiang / PebbleLanguagePack.md
Last active March 24, 2018 00:11
Pebble 語言包製作方法懶人包
@rschiang
rschiang / get_schools.py
Last active September 15, 2016 02:34
交換資料整理
#!/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
@rschiang
rschiang / .gitconfig
Created September 11, 2015 03:36
Git config witchcrafts
[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
@rschiang
rschiang / monokai.xml
Created August 10, 2015 14:51
Qt Creator Monokai theme
<?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"/>
@rschiang
rschiang / pingstat.txt
Created March 24, 2015 06:29
2015-03-24 Ping NTU from NTUCC Room 116 - 74 until 14:27
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
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
@rschiang
rschiang / zipcode.py
Created June 16, 2014 03:30
Batch process zip code
#!/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:
@rschiang
rschiang / Journey-Screenshot.png
Last active December 5, 2019 06:34
"Journey", a Plurk theme in the new era.
Journey-Screenshot.png
@rschiang
rschiang / BallotNewMoveController.php
Last active August 29, 2015 14:02
102-2 臺大宿舍抽籤程式,檢驗樣本(Jesda 公司承包)
<?php
require_once APPLICATION_PATH . '/modules/staff/controllers/BallotController.php';
/**
* 新生遷出住宿抽籤
*
* @author Kim
*
*/
class Staff_BallotNewMoveController extends Staff_BallotController