most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| (function (window, document, script, raven, el, first, loaded) { | |
| raven = []; | |
| window.onerror = function e(message, file, line, colno, ex) { | |
| if (loaded) { | |
| return; | |
| } | |
| raven.push([message, file, colno, ex]); | |
| }; | |
| el = document.createElement(script); | |
| first = document.getElementsByTagName(script)[0]; |
| player | |
| .use(seekBar) | |
| .use(volumeControl); | |
| player | |
| .use(function(next) { | |
| if (hasAccess) { | |
| return watchLaterControl(next); | |
| } |
| function sendAlert (property, value) { | |
| console.log('Sending alert... %s : %s', property, value); | |
| var payload = { | |
| apiKey: '', | |
| message: '' | |
| }; | |
| var options = { | |
| host: 'api.opsgenie.com', |
| app.use(function *responseTime(next){ | |
| var start = new Date; | |
| yield next; | |
| var ms = new Date - start; | |
| this.set('X-Response-Time', ms + 'ms'); | |
| }); | |
| app.use(function *logger(next){ | |
| var start = new Date; | |
| yield next; |
| //The table view row just has to have a full height view in order | |
| //to trigger the TableView touchstart | |
| function LongTouchTableViewRow(_title) { | |
| var row = Ti.UI.createTableViewRow({ | |
| height:50 | |
| }); | |
| var v = Ti.UI.createView({ | |
| height:50 | |
| }); |