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/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: '測試大學愛講系教授', |
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
{ | |
gold: [ | |
{ | |
name : '測試廠商', | |
url: 'http://...../', | |
logoURL: 'http://..../...png', | |
desc: '<p>dsfasdfsdaf</p><p>dfasdfd<a href="dsafsad">asdfdsaf </a>sfsaf.</p>', /* 轉好的 HTML */ | |
enName: 'Test Corp.', | |
enDesc: '<p>dsfasdfsdaf</p><p>dfasdfd<a href="dsafsad">asdfdsaf </a>sfsaf.</p>' | |
} |
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 | |
header('Content-Type: text/plain'); | |
/* Keep the location of this file secret so we won't overload the sharehosting */ | |
$CONF = array( | |
'path' => '../2011', | |
'user' => 'timdream', | |
'repo' => 'coscup-landingpage', |
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
function doSomethingWithArray(arr) { | |
doArray : { | |
// check the array | |
for (var i; i < arr.length; i++) { | |
if (arr[i] === 0) { | |
console.log('item at ' + i.toString(10) + 'is zero.'); | |
flag = true; |