Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
< !DOCTYPE html >
<html lang = "zh" id = "facebook" class = "no_js" >
<head >< meta charset = "utf-8" / ><script > function envFlush (a)
{
function b (c)
{
for (var d in a)
c[d] = a[d];
}
if (window.requireLazy)
@billy3321
billy3321 / get_metadata.py
Created February 15, 2014 13:19
Get ivod urls
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
import urllib, urllib2
import json
import cookielib
from BeautifulSoup import BeautifulSoup, SoupStrainer
base_url = 'http://ivod.ly.gov.tw/'
committee_url = 'http://ivod.ly.gov.tw/Committee/CommsDate'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@billy3321
billy3321 / gist:958db2f6770075f32f03
Created April 22, 2015 06:15
2013年11月23日課綱檢核小組第一次會議會議錄音部分逐字檔

檢核小組第一次會議會議錄音部分逐字檔

時間:2013.11.23

一、成立「高級中等學校及國民中小學社會、語文領域檢核工作小組」的目的是進行教科書名詞檢核

(00:00~05:00)

柯華葳:

各位委員,我是國家教育研究院院長柯華葳,現在容我跟大家說一下今天為什麼要把大家聚在一起。

#!/usr/bin/env python3
from PIL import Image, ImageDraw
import glob, os
jpgs = glob.glob('*.jpg')
for jpg in jpgs:
im = Image.open(jpg)
# print(jpg)
2015-10-24 22:53:34+0800 [npl_ly] ERROR: Spider error processing <GET http://lis.ly.gov.tw/lylegismc/lylegismemkmout?!!FUNC400>
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/base.py", line 824, in runUntilCurrent
call.func(*call.args, **call.kw)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/task.py", line 638, in _tick
taskObj._oneWorkUnit()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/internet/task.py", line 484, in _oneWorkUnit
result = next(self._iterator)
File "/Library/Python/2.7/site-packages/scrapy/utils/defer.py", line 57, in <genexpr>
work = (callable(elem, *args, **named) for elem in iterable)
def set_avatar
if avatar.blank?
if gender == 'male'
avatar = File.open(Dir['male/*'].sample)
elsif gender == 'female'
avatar = File.open(Dir['female/*'].sample)
else
avatar = File.open(Dir['male/*', 'female/*'].sample)
end
end
========== app/helpers/application_helper.rb
def render_punishment_cell(punishment)
hash = Hash.new
if punishment.decision_unit == "公懲會"
hash = {
"議決日期": punishment.relevant_date.present? ? punishment.relevant_date : nil,
"決定機關": punishment.decision_unit.present? ? punishment.decision_unit : nil,
"移送機關": punishment.claimant.present? ? punishment.claimant : nil,
"字 號": punishment.punish_no.present? ? punishment.punish_no : nil,
@billy3321
billy3321 / bug.sql
Last active November 13, 2015 11:50
SELECT id, name, punishments_count FROM "profiles" ORDER BY punishments_count ASC LIMIT 2 OFFSET 0;
id | name | punishments_count
-----+--------+-------------------
618 | 王靖茹 | 0
617 | 王詩銘 | 0
(2 rows)
SELECT id, name, punishments_count FROM "profiles" ORDER BY punishments_count ASC LIMIT 2 OFFSET 10;
id | name | punishments_count
--- review_old.csv 2015-11-14 12:12:37.000000000 +0800
+++ /Users/billy3321/git/jrf/jrf-sunny/app/lib/import/review_151111.csv 2015-11-13 10:39:58.000000000 +0800
@@ -1,4 +1,4 @@
-姓名,發表日期,報刊名稱,文章標題,文章內容,說明評論,裁判字號,資料來源,備註,檔案上傳,,,,,,,,,,,,,,,,
+profile_name, publish_at_in_tw, name, title, content, comment, no, source, memo, file, is_hidden
王令冠,101/3/27,聯合報,21律師轉任法官圓夢,【記者王文玲╱台北報導】「當法官是我的夢想」,律師轉任法官人數今年創新高,共有廿一位律師將轉任法官,他們的執業年資從三年到十八年,有學醫技出身,有專打離婚官司,有當過法官助理,他們都想當有同理心、熱情的法官。這廿一人將依執業年資接受卅五到七十五周的法官職前訓練,司法院長賴浩敏在昨天開訓典禮上提醒他們,不能把金錢物欲擺在第一順位,否則就「走錯行」了。賴也要求準法官們了解社會實況、現象,對人民負責,不要對當事人冷嘲熱諷,要避免恐龍判決,但也不能流於民粹。廿一人中最年長的是五十歲蔡英雌,她曾是國中校長營養午餐案的辯護律師。她指出,在訴訟中,檢察官總想追訴被告,法官則顯冷漠,許多當事人認為法官不懂他們心情,她希望將來當一位熱情的法官,看到當事人不易被看到的一面。執業最久,達十七年八個月的朱慧真,亳不留戀律師生涯,她說「我比較不會賺錢」,一心想做好法官工作。最年輕,今年廿八歲,執業三年的陳佳妤說,律師為一方辯護,當法官才能在判決裡放入正確價值。先生是牙醫的曹馨方,原學醫技,後改念法律,看到當事人無助,想做有同理心的法官;之前在女權律師賴芳玉事務所服務的楊捷羽,打過不少離婚官司,學會傾聽,想帶入法官工作。曾經參與聲請大法官六四三號解釋的謝宜伶認為,判決見解不但解決個案爭議,更可為他人立下處理準則,希望轉任法官做有意義的事。落榜多次考上律師的王令冠,不諱言辛苦歷程,要以體察「民間疾苦」的心情當法官。執業多年的吳紹貴、洪文浚,昨天未參加開訓,轉任資格不保。據司法院側面了解,兩人因來不及結束手邊業務,最後決