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 | |
define('MY_CONSTANT', 1234); | |
$constantName = 'MY_CONSTANT2'; | |
define($constantName, 7890); | |
$globalVariable = 'aiueo'; | |
$GLOBALS['secondGlobal'] = 'abcde'; | |
function globalFunction($arg1, $arg2 = false) | |
{ | |
global $globalVariable, $globalVariable2; | |
$localVariable = 2; |
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
package main | |
import ( | |
"os" | |
"net/http" | |
"io" | |
"path/filepath" | |
"sync" | |
"github.com/codegangsta/cli" | |
"runtime" |
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 processInbox() { | |
var match_x_ml_name = function(message, name){ | |
var raw = message.getRawContent(); | |
var reg = new RegExp('X-ML-Name:(\\s+)?' + name, 'g'); | |
return raw.match(reg) != null; | |
} | |
var filters = [ | |
['x-ml-name_value', 'parent_label/child_label'] | |
]; |
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
# | |
# GoogleReaderへのアクセサ的な何か | |
# GoogleのOAuth2については下記サイトを参照 | |
# http://www.eisbahn.jp/yoichiro/2011/10/oauth2-0_google-api.html | |
# * Phonegap ONLY | |
# * Need "ChildBrowser" plugin | |
# * Need enable cross domain post request | |
# | |
class GoogleReader | |
# コンストラクタ |