Skip to content

Instantly share code, notes, and snippets.

雨蒼 billy3321

Block or report user

Report or block billy3321

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View rwd-tester.rb
#!/usr/bin/env ruby
# usage: ./rwd-tester.rb FILE
# the file is a url list
# install mechanize by `gem install mechanize`.
# require 'rubygems'
require 'mechanize'
def get_page(url)
agent = Mechanize.new
View scan_url.rb
#!/usr/bin/env ruby
# brew install chromedriver geckodriver imagemagick@6
# gem install selenium-webdriver mechanize rmagick nokogiri
require 'selenium-webdriver'
require 'mechanize'
require 'rmagick'
require 'time'
require 'uri'
@billy3321
billy3321 / 民法第一編總則(範例).xml
Last active Jul 7, 2017
akoma ntoso example of 民法第一編總則
View 民法第一編總則(範例).xml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!--Akoma_Ntoso document-->
<akomaNtoso xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.akomantoso.org/2.0 ./akomantoso20.xsd" xmlns="http://www.akomantoso.org/2.0">
<!-- 民法 -->
<!-- 根據行政院法規名稱英譯統一標準,民法應屬Act (http://www.ey.gov.tw/News_Content4.aspx?n=BBEC1571472009EF&sms=337EA9B16C7004DE&s=2C46185B4EA23289) -->
<act contains="originalVersion">
<meta>
<identification source="#somebody">
<!-- FRBR書目分類架構,ref: http://docs.oasis-open.org/legaldocml/akn-nc/v1.0/akn-nc-v1.0.html -->
<FRBRWork>
View 總統府司法改革國是會議相關投書彙整.md

總統府司法改革國是會議相關投書彙整

白忠志

backgrounds

  • 檢察官

articles

2017/02/18 GMT0+8:00 http://www.storm.mg/article/224606

  • 媒體驚爆司法院院長搞黑箱,在推薦人選上通敵,丟下一顆炸彈,卻也令人對這次號稱透明、公開的司改產生質疑。

    在這次司改會議籌備過程中,從司改議題到與會代表決定,未見決定及選任的標準,不也正是在黑箱作業中產生寫照。尤其是參與人選決定,除票選的法官、檢察官、律師代表外,其餘推薦民間團體及被推薦與會代表的人選如何決定正式進入,均未見說明其標準。同樣是律師事務所,為何常在可以推薦,理律不行?台南市象棋協會都可以了,為何跆拳道協會就不行?

    獲選參與的代表也是如此,還要媒體以獨家報導,外界才能得悉人選,重要的媒體報導後,還不公布正式名單。更有趣的是,律師全聯會票選在配票後,還準備一名候補,應該已經預見某大律師已獲推薦入選,趕緊補位補上。若非司法院院長親口說出律師推薦必須對司改積極建言的民間團體的律師中推薦,孰人能知?這麼詭異、謎樣,令人摸不清,捉不著,難道這就是標榜透明、公開的改革。

    司法改革議題雖多,決定固有困難,但不談廢死更是怪異。每次重大殺人案件,法官不判死,最高法院、高等法院來來回回數次也不確定,都會被網民大肆批評嘲弄一番,引起廢死與反廢死的對立,也是讓人民不信任司法的重要原因,這麼重要的司法議題竟然不被列入,只因為沒人提出要討論。一時間,突然眾人皆醒,惟籌委獨睡。司改議題設定的目的是要解決人民的需求,人民對司法不信任的原因是甚麼,總得找出來才能對症下藥。如果議題選定不針對人民的需求而定,分組討論也會在茫茫大海的議題中迷路。

    最後,分組會議都要開始進行了,代表名單還沒出來,我們還是不知道誰要代表進入會場代表發聲,也不知道遊戲規則怎麼走,難道不知道會議召開要提前給開會通知嗎?

    *作者為新北地方法院檢察署主任檢察官

    #會議程序
@billy3321
billy3321 / analysis_an.rb
Created Mar 7, 2017
This script is use to parse akoma ntosos url(.an) and count the word that speaker speech, then save it into a csv file.
View analysis_an.rb
#!/usr/bin/env ruby
# encoding: UTF-8
#
# This script is use to parse akoma ntosos url(.an) and count the word that speacker speech,
# then save it into a csv file.
# Please install Nokogiri through `gem install nokogiri` first.
#
# Usage: ./analysis_an.rb #{AKOMA NTOSOS URL}
#
# This script is release under MIT License.
View 1210 活動自動加入日曆按鈕.html
<a href="http://www.google.com/calendar/event?
action=TEMPLATE
&text=1210%20%E8%AE%93%E7%94%9F%E5%91%BD%E4%B8%8D%E5%86%8D%E9%80%9D%E5%8E%BB%EF%BC%8C%E7%82%BA%E5%A9%9A%E5%A7%BB%E5%B9%B3%E6%AC%8A%E7%AB%99%E5%87%BA%E4%BE%86%20%E9%9F%B3%E6%A8%82%E6%9C%83
&dates=20161210T050000Z/20161210T120000Z
&details=https%3A%2F%2Fwww.facebook.com%2Fevents%2F608609792656897%2F%0A%0A%E7%B6%93%E9%81%8E%E5%85%A9%E5%A0%B4%E5%85%AC%E8%81%BD%E6%9C%83%EF%BC%8C%E5%A9%9A%E5%A7%BB%E5%B9%B3%E6%AC%8A%E7%9A%84%E6%B0%91%E6%B3%95%E4%BF%AE%E6%AD%A3%E6%A1%88%E5%8D%B3%E5%B0%87%E7%B9%BC%E7%BA%8C%E5%9C%A8%E5%A7%94%E5%93%A1%E6%9C%83%E4%B8%AD%E5%AF%A9%E8%AD%B0%EF%BC%8C%E5%80%BC%E6%AD%A4%E5%90%8C%E6%99%82%EF%BC%8C%E6%88%91%E5%80%91%E5%8D%BB%E7%9C%8B%E8%A6%8B%E6%AD%A7%E8%A6%96%E8%AC%A0%E8%A8%80%E4%BB%8D%E7%84%B6%E6%BC%AB%E5%A4%A9%E5%82%B3%E4%BD%88%20%EF%BC%8C%E4%B8%8D%E5%83%85%E5%B0%8D%E5%90%8C%E5%BF%97%E6%97%8F%E7%BE%A4%E9%80%A0%E6%88%90%E5%9A%B4%E9%87%8D%E5%82%B7%E5%AE%B3%EF%BC%8C%E6%9B%B4%E6%8C%91%E8%B5%B7%E5%8F%B0%E7%81%A3%E7%A4%BE%E6%9C%83%E7%9A
@billy3321
billy3321 / split_lot_number.php
Last active Oct 22, 2016
把完整地號分開來
View split_lot_number.php
<?php
// This code release under MIT License.
$test_array = Array("宜蘭縣冬山鄉興平段0444號",
"花蓮縣花蓮市富國段0419號",
"嘉義市東區長竹段0908-0003號",
"新竹市新竹市區民富段2715號",
"臺南市永康區二王段0029號",
"臺北市大安區復興段三小段0645-0003號",
@billy3321
billy3321 / Markdown Cheatsheet 中文版.md
Last active Sep 20, 2019
Markdown Cheatsheet 中文版
View Markdown Cheatsheet 中文版.md
View fix elasticsearch mapping
curl -XPUT 'http://127.0.0.1:9200/judgements/' -d '{
"mappings": {
"judgement": {
"properties": {
"court": {
"type": "object",
"properties": {
"name": { "type" : "string", "index" : "analyzed", "analyzer" : "cjk" },
"code": { "type": "string" }
}
View production.log
I, [2015-12-07T21:24:03.175184 #16033] INFO -- : method=GET path=/legislators/1735/votes format=*/* controller=legislators action=votes status=200 duration=754.15 view=19.90 db=5.77 request_id=f8daef02-24f2-49f6-91d3-86adeacc9995 ip=157.55.39.183 params={"decision"=>"abstain", "page"=>"40", "id"=>"1735"}
I, [2015-12-07T21:24:03.939658 #16033] INFO -- : method=GET path=/legislators/1312/votes format=*/* controller=legislators action=votes status=200 duration=759.22 view=21.71 db=5.21 request_id=7346c493-ec8c-4ec3-b942-93483153c82e ip=207.46.13.56 params={"ad"=>"8", "decision"=>"abstain", "page"=>"46", "id"=>"1312"}
I, [2015-12-07T21:24:08.842477 #16033] INFO -- : method=GET path=/legislators/1735/bills format=html controller=legislators action=bills status=200 duration=4896.37 view=175.02 db=5.06 request_id=1b0c32c6-f93e-49b9-91b8-03797bd4b950 ip=66.249.66.57 params={"ad"=>"8", "page"=>"51", "id"=>"1735"}
I, [2015-12-07T21:24:09.607226 #16033] INFO -- : method=GET path=/legislators/1731/votes format=*/* co
You can’t perform that action at this time.