Skip to content

Instantly share code, notes, and snippets.

View irvin's full-sized avatar

Irvin Chen irvin

View GitHub Profile
@9re
9re / clean_mac_files_from_zip.sh
Created November 17, 2011 11:47
remove __MACOSX and .DS_Store files from zip files
#!/bin/bash
# remove __MACOSX foldr and .DS_Store files
# from *_original.zip file
# zip again and place under fixed/*
for x in $*
do
unzip $x
@paulirish
paulirish / rAF.js
Last active June 23, 2024 04:00
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@myobie
myobie / mountain-lion-brew-setup.markdown
Created February 18, 2012 20:14
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

@wastemobile
wastemobile / 1.single-epub
Created April 21, 2012 08:44
EPUB 電子書,ONIX 最小化範本
<?xml version="1.0" encoding="UTF-8"?>
<ONIXMessage release="3.0">
<Header>
<SentDateTime>2012-04-21T16:20:30+08</SentDateTime>
<!-- EPUB 電子書、可下載、浮水印保護,指名獨家總經銷者 -->
</Header>
<Product>
<!-- P.1 記錄參考、型態與來源 -->
<RecordReference>agileread.com-10000001</RecordReference>
<!-- 出版確認通知 -->
@timdream
timdream / .git_config
Created April 25, 2012 03:01
git-svn conversion for moztw-web
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[svn-remote "svn"]
url = http://svn.openfoundry.org/moztw
fetch = :refs/remotes/git-svn
[svn]
authorsfile = /home/timdream/repo/moztw/authors.txt
@afutseng
afutseng / coscup2012-day1-irc-log
Created August 18, 2012 13:12
COSCUP 2012 Day1 irc log
--- Log opened Fri Aug 17 01:22:02 2012
01:22 -!- chph_ [afu@FreeBSD.stu.edu.tw] has joined #coscup
01:22 -!- Irssi: #coscup: Total of 44 nicks [0 ops, 0 halfops, 0 voices, 44 normal]
01:22 -!- Irssi: Join to #coscup was synced in 2 secs
01:22 -!- You're now known as chph
01:24 -!- test [3b7fcc66@gateway/web/freenode/ip.59.127.204.102] has quit [Quit: Page closed]
01:27 -!- Yuhsien [~Yuhsienle@staff.kkbox.com.tw] has quit [Quit: Lost terminal]
01:29 -!- FourDollars [~sylee@114-32-46-10.HINET-IP.hinet.net] has quit [Quit: leaving]
01:29 -!- webbertsai_ [722fde03@gateway/web/freenode/ip.114.47.222.3] has joined #coscup
01:31 -!- webbertsai [722fde03@gateway/web/freenode/ip.114.47.222.3] has quit [Ping timeout: 245 seconds]
@afutseng
afutseng / COSCUP-2012-Day2-irc-log
Created August 19, 2012 09:05
COSCUP 2012 Day2 irc log
--- Day changed Sun Aug 19 2012
00:01 -!- Alisha [72262a5c@gateway/web/freenode/ip.114.38.42.92] has quit [Quit: Page closed]
00:02 -!- orinx|bof is now known as orinx|sleep
00:02 -!- play [~AndChat59@111-248-106-192.dynamic.hinet.net] has joined #coscup
00:02 -!- bobchao [~bobchao@202-169-164-141.aspublic.wlan.sinica.edu.tw] has joined #coscup
00:02 -!- mode/#coscup [+o bobchao] by ChanServ
00:03 -!- play [~AndChat59@111-248-106-192.dynamic.hinet.net] has quit [Client Quit]
00:03 -!- nemu [72180666@gateway/web/freenode/ip.114.24.6.102] has joined #coscup
00:04 -!- kevin6861 [3d46d92d@gateway/web/freenode/ip.61.70.217.45] has quit []
00:06 -!- kengyu [~Keng-Yu@42.71.190.169] has joined #coscup
anonymous
anonymous / gist:4518185
Created January 12, 2013 14:01
09:03 < MouseMs> 早安 :)
09:08 < BeataLin> 早安
09:10 < carlcarl> 喔喔 看來是這裡@@
09:14 < sss2500> 早安
09:14 < carlcarl> 還想說怎麼無線都連不上XD
09:16 < BeataLin> 不好意思,請問一下附近有投幣面紙嗎
09:17 < carlcarl> 問一下工作人員看看??
09:17 < BeataLin> 謝謝
09:26 < kikiqqp> 座位表座位表(敲碗)
@impressiver
impressiver / raven-config.html
Last active June 28, 2024 05:30
Raven.js configuration for logging JavaScript exceptions to Sentry (https://getsentry.com/). Without the added ignore options, you'll quickly find yourself swamped with unactionable exceptions due to shoddy browser plugins and 3rd party script errors.
<!-- Raven.js Config -->
<script src="{{ JS_PATH }}/lib/raven.js" type="text/javascript"></script>
<script type="text/javascript">
// Ignore list based off: https://gist.github.com/1878283
var ravenOptions = {
// Will cause a deprecation warning, but the demise of `ignoreErrors` is still under discussion.
// See: https://github.com/getsentry/raven-js/issues/73
ignoreErrors: [
// Random plugins/extensions
'top.GLOBALS',
@aymanfarhat
aymanfarhat / urlobject.js
Last active July 27, 2017 00:04
JS utility function that: - Breaks down url to an object with accessible properties: protocol, parameters object, host, hash, etc... - Converts url parameters to key/value pairs - Convert parameter numeric values to their base types instead of strings - Store multiple values of a parameter in an array - Unescape parameter values
function urlObject(options) {
"use strict";
/*global window, document*/
var url_search_arr,
option_key,
i,
urlObj,
get_param,
key,