This file contains hidden or 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(location.pathname.slice(1) == "" && location.hash !== '#blog') { | |
| location.href='http://mysite.tumblr.com/home' | |
| } |
This file contains hidden or 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
| //Requires [Shimmy](https://github.com/Xogix/TiLibrary/tree/master/Shimmy) | |
| //Simple forms with Shimmy | |
| var shimmy = require('/Shimmy') | |
| , ui = shimmy.UI | |
| , _ = shimmy._; | |
| var win = ui.Window(); | |
| var form = ui.Form({ |
This file contains hidden or 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('require_patch')(this); | |
| /** | |
| * Loads "myModule" from your applications "Resources/titan_modules" directory if package.json is present. | |
| * If "main" is set in package.json module will be loaded from that file else defaults to "index.js" | |
| */ | |
| var myModule = require('myModule'); | |
| myModule.someFunction(); |
This file contains hidden or 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
| /*! Socket.IO.js build:0.9.6, development. Copyright(c) 2011 LearnBoost <[email protected]> MIT Licensed */ | |
| /** | |
| * Originally Ported to titanium by Jordi Domenech <[email protected]> | |
| * source: https://github.com/iamyellow/socket.io-client | |
| */ | |
| this.io = {}; | |
| module.exports = this.io; | |
| /** |
This file contains hidden or 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 logger = require('lib/socket.io-client').connect({id:'MyAppName', channel:'MyAppChannel'}); | |
| var window = Ti.UI.Window(); | |
| window.open(); | |
| var jsonTest = {'test':'testparam'}; | |
| //String Example | |
| logger.log('test message'); |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
OlderNewer