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
/** | |
* Expose `Stream`. | |
*/ | |
if ('undefined' !== typeof module) { | |
module.exports = Stream; | |
} | |
/** |
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
/** | |
* Available node core libraries | |
*/ | |
var node = require('node') | |
, assert = node.assert | |
, buffer = node.buffer | |
, events = node.events | |
, net = node.net | |
, stream = node.stream |
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
/** | |
* two way data binding | |
*/ | |
// create root scope | |
window.$rootScope = {}; | |
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
/** | |
* Require the given path. | |
* | |
* @param {String} path | |
* @return {Object} exports | |
* @api public | |
*/ | |
function require(path, parent, orig) { | |
var resolved = require.resolve(path); |
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 x = { | |
"test": 1, | |
"test2": 2, | |
"testArray": [1,2,3,4] | |
}; | |
console.log('TEST',x); | |
/** | |
* OUTPUT |
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
osascript -e 'set a to do shell script "ioreg -w0 -l | grep Capacity"' -e "set h to word 5 of a" -e "set z to word 33 of a" -e "set b to word 38 of a" -e "set c to 1000 * b / z" -e "set d to round c" -e "set f to d / 10" -e "set q to 1000 * h / b" -e "set w to round q" -e "set j to w / 10" -e '"Battery Health: " & j &"%"' | iconv -f utf-8 -t ucs-2-internal; |
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
if test "$1" = "finish"; then | |
test -z $2 && echo "ticket <name> number." 1>&2 && exit 1 | |
branch=timob-$2 | |
git checkout master | |
git branch -D $branch && git push origin :$branch | |
else | |
test -z $1 && echo "ticket <name> required." && exit 1 | |
branch=timob-$1 | |
git checkout -b $branch &> /dev/null | |
git checkout $branch &> /dev/null |
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
/File generated Using psd2ti | |
var self = Ti.UI.createWindow(); | |
self.open(); | |
var bg = Ti.UI.createImageView({ | |
top: 0, left: 0, | |
height: 480, width:320, | |
backgroundImage: 'images/bg.png' |
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
// this sets the background color of the master UIView (when there are no windows/tab groups on it) | |
Titanium.UI.setBackgroundColor('#000'); | |
// Module Exports | |
var self = module.export = {}; | |
// create tab group | |
self.tabGroup = Titanium.UI.createTabGroup(); | |
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
/*! | |
* apibuilder | |
* Copyright (c) 2012 Christian Sullivan <[email protected]> | |
* MIT Licensed | |
*/ | |
var request = require('superagent'); | |
/** | |
* Module Exports |