This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html manifest="manifest.appcache"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="pragma" content="no-cache"> | |
<!-- System --> | |
<script> | |
</script> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Contact Manager for maintaining contact cache and access contact db. | |
* 1. Maintain used contacts in contactData object literal. | |
* 2. getContactData: Call the callback with contact data. | |
* Callback will be called twice if cached data turned out to be different than | |
* the data from db. | |
*/ | |
var ContactDataManager = { | |
contactData: {}, | |
getContactData: function cm_getContactData(options, callback) { | |
var isCacheable = (options.filterBy.indexOf('tel') !== -1 && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html manifest="manifest.appcache"> | |
<body> | |
Tap on the black space to test key events bubbling from mozbrowser. | |
Tap on the red space to test key events bubbling from mozbrowser within mozbrowser. | |
<iframe width=400 height=600 mozbrowser src="data:text/html,<body bgcolor=black><iframe mozbrowser src='data:text/html,<body bgcolor=red>'></iframe></body>"></iframe> | |
<script> | |
['keydown', 'keypress', 'keyup'].forEach(function (type) { | |
window.addEventListener(type, function (evt) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* host machine settings */ | |
$GIT_BIN = '/usr/local/bin/git'; | |
$LOCAL_USER = 'www'; | |
/* remote repo settings */ | |
$REMOTE = 'origin'; | |
$BRANCH = 'production'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo kextunload -b org.virtualbox.kext.VBoxUSB | |
sudo kextunload -b org.virtualbox.kext.VBoxNetFlt | |
sudo kextunload -b org.virtualbox.kext.VBoxNetAdp | |
sudo kextunload -b org.virtualbox.kext.VBoxDrv | |
sudo kextload /Library/Extensions/VBoxDrv.kext -r /Library/Extensions/ | |
sudo kextload /Library/Extensions/VBoxNetFlt.kext -r /Library/Extensions/ | |
sudo kextload /Library/Extensions/VBoxNetAdp.kext -r /Library/Extensions/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /tmp | |
# init remote | |
mkdir remote.git | |
cd remote.git | |
git init --bare |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* | |
* Imgur CORS Image upload | |
* | |
* Author & Copyright: timdream (timdream@gmail.com; http://timdream.org/) | |
* License: MIT LICENSE | |
* | |
*/ | |
"use strict"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
getSponsorListFromRemote($key) | |
@param: key = key of google spreadsheet doc | |
@return: | |
false on failure | |
array when success | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
name: '測是', | |
from: 1234456788, /* Unix timestamp */ | |
to: 123456778, | |
type: 1, | |
room: 0, | |
language: 'zh', /* 'zh' or 'en', 我們應該不會有日文議程 */ | |
speaker: '陳愛講', /* 名字 (頭銜)*/ | |
speakerTitle: '測試大學愛講系教授', |