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
/** | |
* Adapter layer for bridging `handlebars-layouts` and `express-handlebars`. | |
* | |
* Usage: | |
* var exphbs = require('express-handlebars'); | |
* var handlebarsLayout = require('handlebars-layouts'); | |
* var exphbsAdapter = require('express-handlebars-layouts-adapter'); | |
* | |
* handlebarsLayout(exphbsAdapter); | |
* var exphbs.create({ |
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
Environments: docs/ENVIRONMENTS.md | |
export APP=minimalist | |
export MANI=http://minimalist.ngokevin.com/minimalist.webapp | |
echo $APP | |
mkdir $APP | |
rm -Rf $APP/* | |
curl -v -k "${ENDPOINT}/application.apk?manifestUrl=${MANI}" -o ${APP}/${APP}.apk | |
java -jar ~/Projects/apk-factory-service/lib/ext/apktool.jar d -f ${APP}/${APP}.apk ${APP}/${APP} |
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
+++ b/server/bin/betafox | |
@@ -78,6 +78,7 @@ confsys.withConfig(function(config) { | |
cookieName: sessionConf.cookieName, | |
secret: sessionConf.secret, | |
duration: sessionConf.duration, | |
+ secureProxy: true, | |
cookie: { | |
secure: (config.env === 'production' ? true : false), | |
httpOnly: true, |
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
macro _arms { | |
rule {(default => $value:expr)} => { | |
else { | |
return $value; | |
} | |
} | |
rule {(rule {$cond:expr} => $value:expr)} => { | |
if($cond) { | |
return $value; | |
} |
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
macro _match_cond { | |
rule {$o($field)} => { | |
(typeof $o.$field !== 'undefined') | |
} | |
rule {$o($field $rest...)} => { | |
_match_cond $o($field) && _match_cond $o($rest...) | |
} | |
} | |
macro _match_var { | |
rule {$o($field)} => { |
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
macro $if { | |
rule { | |
($x...) | |
} => { | |
if (relCar($x...)) | |
} | |
} | |
macro $while { | |
rule { |
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
macro def { | |
rule { | |
$name:ident ( $($params:ident : $type:ident) (,) ...) $body | |
} => { | |
// just throwing away the type annotation. The semantics of type | |
// annotations left as an exercise to the reader :) | |
function $name ($params (,) ...) $body | |
} | |
} | |
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
curl -v https://mobile.twitter.com/cache/twitter.webapp | |
* About to connect() to mobile.twitter.com port 443 (#0) | |
* Trying 199.16.156.43... connected | |
* successfully set certificate verify locations: | |
* CAfile: none | |
CApath: /etc/ssl/certs | |
* SSLv3, TLS handshake, Client hello (1): | |
* SSLv3, TLS handshake, Server hello (2): | |
* SSLv3, TLS handshake, CERT (11): | |
* SSLv3, TLS handshake, Server key exchange (12): |
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
npm ERR! Error: No compatible version found: normalize-package-data@'^0.2.13' | |
npm ERR! Valid install targets: | |
npm ERR! ["0.0.1","0.0.3","0.0.5","0.0.7","0.0.9","0.0.10","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.2.11","0.2.12","0.2.13"] | |
npm ERR! at installTargetsError (/home/travis/.nvm/v0.8.26/lib/node_modules/npm/lib/cache.js:719:10) | |
npm ERR! at /home/travis/.nvm/v0.8.26/lib/node_modules/npm/lib/cache.js:641:10 | |
npm ERR! at saved (/home/travis/.nvm/v0.8.26/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7) | |
npm ERR! at Object.oncomplete (fs.js:297:15) | |
npm ERR! If you need help, you may report this log at: | |
npm ERR! <http://github.com/isaacs/npm/issues> | |
npm ERR! or email it to: |
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
var GROUP = 0; | |
var SUB_GROUP = 1; | |
... | |
releases[GROUP]; | |
releases[SUB_GROUP]; | |
function getGroup(data, releaseOffset) { |
NewerOlder