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
| // A streaming byte oriented JSON parser. Feed it a single byte at a time and | |
| // it will emit complete objects as it comes across them. Whitespace within and | |
| // between objects is ignored. This means it can parse newline delimited JSON. | |
| function jsonMachine(emit, next) { | |
| next = next || $value; | |
| return $value; | |
| function $value(byte) { | |
| if (!byte) return; | |
| if (byte === 0x09 || byte === 0x0a || byte === 0x0d || byte === 0x20) { |
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
| /* | |
| State. | |
| */ | |
| var simplify = Ti.Platform.osname === 'mobileweb'; | |
| var currentFlashes = {}; | |
| /* | |
| Public API. | |
| */ | |
| exports.chainAnimateForever = chainAnimateForever; |
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
| /* | |
| Polyfill for the Object.watch/Object.unwatch functions available in Mozilla browsers | |
| https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/watch | |
| you have a test here: | |
| http://www.telecable.es/personales/covam1/deployToNenyures/SourceCode/Object.watch.test.js | |
| and can read more here: | |
| http://deploytonenyures.blogspot.com.es/2013/02/objectwatch-polyfill.html | |
| */ |
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
| <!DOCTYPE html> | |
| <html ng-app="App"> | |
| <head> | |
| <meta name="description" content="AngularJS + jQuery UI Drag-n-Drop" /> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
| <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.0.1/angular.min.js"></script> | |
| <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" /> | |
| <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.min.css" rel="stylesheet"> | |
| <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script> | |
| <meta charset=utf-8 /> |
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 UI = require('ui'); | |
| UI.Window({ | |
| subviews:[ | |
| UI.Label({ | |
| width: Ti.UI.SIZE, | |
| height: Ti.UI.SIZE, | |
| color: "#000", | |
| text: 'here', | |
| onClick: function() { |
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
| ;(function(){ | |
| //------------------------------------------------------------------------------ | |
| if (typeof(Object.observe) == "function") { | |
| console.log("object.observe() is already available") | |
| return | |
| } | |
| //------------------------------------------------------------------------------ | |
| // observe property changes on an object |
Copy this file to: /Library/LaunchDaemons/fwd-80-to-3000.plist and then reboot:
$ sudo -s
$ curl -L https://gist.github.com/TooTallNate/3372589/raw/ace6451e9e47f59550f12d09cb924a64531cfd1f/fwd-80-to-3000.plist > /Library/LaunchDaemons/fwd-80-to-3000.plist
$ rebootRecent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
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 U = require('utils'); | |
| var VBN = require('viewBasedNavigator'); | |
| exports.applyTo = function(args) { | |
| args = args || {}; | |
| U.def(args, { | |
| id: null, | |
| view: null, | |
| anchor: 'left', | |
| expanded: 320, |