Skip to content

Instantly share code, notes, and snippets.

View victorhsieh's full-sized avatar

Victor Hsieh victorhsieh

View GitHub Profile
chars='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,./<>?`~!@#$'.split('')
var re1 = new RegExp("^([\u4E00-\uFA29]|[\uE7C7-\uE7F3]|[a-zA-Z0-9])*$");
function p(prefix, depth) { if (depth == 0) { cb(prefix); return; } for (var i = 0 ; i < chars.length; i++) { p(prefix + chars[i], depth - 1); } }
function cb(dec_pwd) {
var cipher_bytes = aesjs.utils.hex.toBytes(params["cipher_hex"]);
var iv_bytes = aesjs.utils.hex.toBytes(params["iv_hex"]);
var dec_key = hash256(aesjs.utils.utf8.toBytes(dec_pwd) + iv_bytes);
<div id="outputdiv"><span>第四十五條 違反</span><ins style="background:#e6ffe6;">第二十八條第一項或</ins><span>中央主管機關依第二十八條第三項所定辦法者,處新臺幣四萬元以上二十萬元以下罰鍰;違反同條第二項規定者,處新臺幣六十萬元以上五百萬元以下罰鍰;</span><del style="background:#ffe6e6;">情節重大</del><ins style="background:#e6ffe6;">再次違反者,並</ins><span>得命其</span><del style="background:#ffe6e6;">立即</del><span>歇業、停業一定期間、廢止其公司、商業、工廠之全部或部分登記事項,或食品業者之登錄;經廢止登錄者,一年內不得再申請重新登錄。¶<br>違反前項廣告規定之食品業者,應按次處罰至其停止刊播為止。¶<br>違反第二十八條有關廣告規定之一,情節重大者,除依前二項規定處分外,主管機關並應命其不得販賣、供應或陳列;且應自裁處書送達之日起三十日內,於原刊播之同一篇幅、時段,刊播一定次數之更正廣告,其內容應載明表達歉意及排除錯誤之訊息。¶<br>違反前項規定,繼續販賣、供應、陳列或未刊播更正廣告者,處新臺幣十二萬元以上六十萬元以下罰鍰。</span><del style="background:#ffe6e6;">¶<br></del><br>Time: 0.003s</div>
@victorhsieh
victorhsieh / index.html
Created October 27, 2013 02:18
pretty diff output
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'><html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'><head><title>Pretty Diff - The difference tool</title><meta name='robots' content='index, follow'/> <meta name='DC.title' content='Pretty Diff - The difference tool'/> <link rel='canonical' href='http://prettydiff.com/' type='application/xhtml+xml'/><meta http-equiv='Content-Type' content='application/xhtml+xml;charset=UTF-8'/><meta http-equiv='Content-Style-Type' content='text/css'/><style type='text/css'>body{font-family:"Arial";font-size:10px;overflow-y:scroll;}#samples #dcolorScheme{position:relative;z-index:1000}#apireturn textarea{font-size:1.2em;height:50em;width:100%}button{border-radius:.9em;display:block;font-weight:bold;width:100%}div .button{text-align:center}div button{display:inline-block;font-weight:bold;margin:1em 0;padding:1em 2em}button:hover{cursor:pointer}#introduction{clear:both;margin:0 0 0 5.6em;position:relative;top:-2.75em}#introduct
{
"name": "中華民國刑法",
"revision": [
{
"date": "二十三年十月三十一日",
"content": {
"第一條": "行為之處罰,以行為時之法律有明文規定者,為限。",
"第二條": "行為後法律有變更者,適用裁判時之法律。但裁判前之法律有利於行為人者,適用最有利於行為人之法律。保安處分,適用裁判時之法律。處罰之裁判確定後,未執行或執行未完畢,而法律有變更,不處罰其行為者,免其刑之執行。",
"第三條": "本法於在中華民國領域內犯罪者,適用之;在中華民國領域外之中華民國船艦或航空機內犯罪者,以在中華民國領域內犯罪論。",
"第四條": "犯罪之行為或結果,有一在中華民國領域內者,為在中華民國領域內犯罪。",
@victorhsieh
victorhsieh / 3426.json
Created December 12, 2012 05:46
3426.json by md2json
This file has been truncated, but you can view the full file.
{
"data": [
{
"session": "院會紀錄",
"data": [
{
"content": "立法院公報 第94卷 第44期 院會紀錄"
},
{
"content": "院 會紀錄"
@victorhsieh
victorhsieh / 4004-2.json
Created December 11, 2012 09:07
(new) 4004.json by md2json
This file has been truncated, but you can view the full file.
{
"data": [
{
"section": "院會紀錄",
"data": [
{
"content": "立法院公報 第101卷 第63期 院會紀錄"
},
{
"content": "院會紀錄"
@victorhsieh
victorhsieh / 4004.json
Created December 11, 2012 06:37
4004.json by md2json
This file has been truncated, but you can view the full file.
[
{},
[
{
"section": "院會紀錄",
"ad": 8,
"session": 2,
"sitting": 6,
"datetime": "2012-10-26T10:00:00.000Z",
"speaker": "王院長金平"
@victorhsieh
victorhsieh / 3445.md
Created December 10, 2012 13:03
3445

院會紀錄

立法院公報 第94卷 第63期 院會紀錄

院 會紀錄

一、立法院第6屆第2會期第9次會議紀錄

時  間 中華民國94年11月4日(星期五)上午10時3分、11月8日(星期二)上午9時1分