此文目標讀者需先自行學會
- 開 Github 帳號
- 會 fork 程式 repository
- 會在自己的電腦使用命令列
git
- 會 clone 自己的 repository
<?php | |
/* | |
getSponsorListFromRemote($key) | |
@param: key = key of google spreadsheet doc | |
@return: | |
false on failure | |
array when success | |
/*! | |
* | |
* Imgur CORS Image upload | |
* | |
* Author & Copyright: timdream (timdream@gmail.com; http://timdream.org/) | |
* License: MIT LICENSE | |
* | |
*/ | |
"use strict"; |
#!/bin/sh | |
cd /tmp | |
# init remote | |
mkdir remote.git | |
cd remote.git | |
git init --bare |
#!/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/ |
<?php | |
/* host machine settings */ | |
$GIT_BIN = '/usr/local/bin/git'; | |
$LOCAL_USER = 'www'; | |
/* remote repo settings */ | |
$REMOTE = 'origin'; | |
$BRANCH = 'production'; |
[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 |
<!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) { |
/* 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 && |
<!DOCTYPE html> | |
<html manifest="manifest.appcache"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="pragma" content="no-cache"> | |
<!-- System --> | |
<script> | |
</script> | |
</head> |