Skip to content

Instantly share code, notes, and snippets.

View sinergy's full-sized avatar

Cloud Chen sinergy

View GitHub Profile
@sinergy
sinergy / csv_format.csv
Last active August 29, 2015 14:07
A script which read the duty table CSV file, and send a notification message to the specific room of HipChat. 讀取 CSV 中的值日生名單,並且透過 hipchat.pl 這隻 perl script 傳遞提醒訊息至指定的 room 中
日期 值日生
2014/07/04 Arc
2014/07/11 Clark
2014/07/18 Jack
2014/07/25 William
2014/08/01 kiki
2014/08/08 Cloud
2014/08/15 Isaac
2014/08/22 Haru
2014/08/29 Jimmy
@sinergy
sinergy / OnOneClickListener.java
Created June 13, 2014 14:36
This class allows a single click and prevents multiple clicks on the same button in rapid succession.
/**
* This class allows a single click and prevents multiple clicks on
* the same button in rapid succession. Setting unclickable is not enough
* because click events may still be queued up.
*
* Override onOneClick() to handle single clicks. Call reset() when you want to
* accept another click.
*/
public abstract class OnOneClickListener implements View.OnClickListener {
@sinergy
sinergy / new_gist_file
Created May 22, 2013 10:45
Check if Key existed in the JsonData Object of LitJSON (A C# JSON Parser) source: http://goo.gl/NxBcP
static public bool JsonDataContainsKey(JsonData data,string key)
{
bool result = false;
if(data == null)
return result;
if(!data.IsObject)
{
return result;
}
IDictionary tdictionary = data as IDictionary;
@sinergy
sinergy / 1. Example.scss
Created March 22, 2013 03:26 — forked from Integralist/1. Example.scss
cross-browser CSS3 keyframe animation for SASS.
@include keyframe(fadeout) {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}