Skip to content

Instantly share code, notes, and snippets.

View johnroyer's full-sized avatar

Zero Huang johnroyer

View GitHub Profile
@johnroyer
johnroyer / favourite_project_testing.md
Last active August 29, 2015 14:11
Redmine Plugin favourite_project Test
@johnroyer
johnroyer / CorrectRutenChecker.js
Created February 12, 2015 03:31
露天防釣魚檢查工具
// ==UserScript==
// @name CorrectRuten
// @namespace http://www.ruten.com.tw
// @description Change some element on login page
// @include https://*.ruten.com.tw/user/login.htm*
// @include http://member.stage2.ruten.com.tw/user/login.htm*
// ==/UserScript==
// Change logo
@johnroyer
johnroyer / 8commicImageGrabber.js
Last active August 29, 2015 14:15
8comic Image Link Grabber
// ==UserScript==
// @name 8comicLinkGrabber
// @namespace zeroplex.tw
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @include http://new.comicvip.com/show/cool-*
// @version 1
// @grant none
// ==/UserScript==
@johnroyer
johnroyer / Makefile
Created March 23, 2015 05:54
水利署生活用水量統計
all:
./grabber.sh
clean:
rm -f *.html
@johnroyer
johnroyer / unMute.sh
Created April 9, 2015 01:38
Ubuntu un-mute audio
#!/bin/bash
alsactl init
// ==UserScript==
// @name railwayTicketFormAutoField
// @namespace http://railway.hinet.net/ctno1.htm
// @description Change some element on login page
// @include http://*railway.hinet.net/ctno1.htm
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
var personalId = 'A123456789'; // 身份正字號
@johnroyer
johnroyer / arrayCompare.php
Created July 31, 2014 08:49
Array Compare Recursively
/**
* Compare if two array are totally the same
*
* @return bool
*/
function isArraySameRecursively($o, $c){
if(count(array_diff_assoc($o, $c)) > 0){
return false;
}
09:07 -!- Irssi: Join to #webconf.tw was synced in 133 secs
09:08 < MouseMs> 大家早安
09:08 < locy69> 早安
09:09 < StarNight> 早安!~
09:10 < MouseMs> [SITCON] 答案填寫單將於9:30開放submit答案 PS:同時也會開放第五題唷 今天的題目都比較簡單 歡迎大家挑戰:)
09:13 < bency> 早安
09:13 < BeataLin> 早安!
09:21 < SITCON> 今天也有3題等著大家挑戰唷^^
09:23 < kikiqqp_> 今天R0的有線網路有點怪怪的
09:25 < ChAndrew> Good Morning!!
@johnroyer
johnroyer / gist:6850837
Created October 6, 2013 07:40
PHPConf Taiwan 2013 IRC log
--- Log opened Sat Oct 05 09:28:58 2013
09:28 -!- Irssi: #phpconf-tw: Total of 32 nicks [1 ops, 0 halfops, 0 voices, 31 normal]
09:28 -!- Irssi: Join to #phpconf-tw was synced in 1 secs
09:29 < fillano> showtime...
09:30 < jaster> 交換名片XD
09:33 < fntsrlike> you-shall-not-hack.me
09:34 < jaster> 入侵的第一步是要網址
09:36 < fntsrlike> 「欸,要付費欸。」
09:36 < jaster> 要付費XD
09:38 < jaster> 少一個w XD
@johnroyer
johnroyer / gist:8282741
Created January 6, 2014 13:15
for Tampermonkey
// ==UserScript==
// @name railwayTicketFormAutoField
// @namespace http://railway.hinet.net/ctno1.htm
// @description Change some element on login page
// @include http://*railway.hinet.net/ctno1.htm
// ==/UserScript==
var personalId = 'A123456789'; // 身份正字號
var fromStation = '100'; // 台北