Service | Analytics | Performance | Errors | Titanium SDK | Costs |
---|---|---|---|---|---|
New Relic | Limited (users) | HTTP | HTTP | Incomplete (no crashes) | Free, $29/mo |
Google Analytics | Extensive | Manual | Native (no traces) | Abandoned, Out-dated | Free |
Appcelerator Platform | Extensive | HTTP | Native + JS | Up-to-date | Not public |
Count.ly | Extensive | N/A | N/A | gitTio | OSS, $125/mo |
Flurry | Extensive | N/A | Native | gitTio, Marketplace | Free |
Crit |
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
// examples; | |
// "{f} {b}".printf({f: "foo", b: "bar"}); | |
// "%s %s".printf(["foo", "bar"]); | |
// "%s %s".printf("foo", "bar"); | |
String.prototype.printf = function (obj) { | |
var useArguments = false; | |
var _arguments = arguments; | |
var i = -1; | |
if (typeof _arguments[0] == "string") { | |
useArguments = true; |
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
{ | |
"html": { | |
"indent_char": " ", | |
"indent_size": 2 | |
}, | |
"css": { | |
"indent_char": " ", | |
"indent_size": 2 | |
}, | |
"js": { |
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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
settings: { | |
releaseNotes: grunt.option('notes') || 'CI build', | |
appName: 'Flashlight', | |
ppUuid: '0253600x-ac6d-35b6-b66d-dd25c4fd956f', | |
installrAppToken: '6xC0I8SdJA76kW3pqq7GFZLIyq6fBP4Z' | |
}, |
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
alias screenshot='adb shell screencap -p | perl -pe "s/\x0D\x0A/\x0A/g" > "/Users/fokkezb/Downloads/android_$(date +%Y%m%d-%H%M%S).png"' | |
# NOTE: Replace 'fokkezb' with your user. You cannot use ~ when using $() unfortunately |
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 jsObject = { | |
foo: 'bar' | |
}; | |
var tiObject = Ti.UI.create2DMatrix(); | |
function isJsObject(obj) { | |
return typeof obj.__proto__ !== 'undefined'; | |
} |
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
<? | |
$scheme = isset($_GET['scheme']) ? $_GET['scheme'] : 'twitter'; | |
$path = isset($_GET['path']) ? $_GET['path'] : '/'; | |
$id = isset($_GET['id']) ? $_GET['id'] : 333903271; | |
$package = isset($_GET['scheme']) ? $_GET['scheme'] : 'com.twitter.android'; | |
$auto = isset($_GET['auto']); | |
// Detection | |
$HTTP_USER_AGENT = strtolower($_SERVER['HTTP_USER_AGENT']); |
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 win = Ti.UI.createWindow({ | |
backgroundColor: 'white' | |
}); | |
win.addEventListener('click', function foo(e) { // note the named function expression needed for the second way | |
// oringal idea by @fukhaos | |
// http://www.tidev.io/2014/09/10/the-case-against-ti-app-fireevent-2/#comment-13013 | |
e.source.removeEventListener(e.type, arguments.callee); | |
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
Show hidden characters
{ | |
"browser": true, | |
"camelcase": true, | |
"curly": true, | |
"eqeqeq": true, | |
"expr": true, | |
"immed": true, | |
"indent": 4, | |
"latedef": "nofunc", | |
"newcap": true, |
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
$ gittio install nl.fokkezb.drawer@master -p ios,android | |
[INFO] nl.fokkezb.drawer searching... | |
[INFO] nl.fokkezb.drawer@master:ios,android downloading... | |
[INFO] nl.fokkezb.drawer@master:ios,android installing... | |
[INFO] dk.napp.drawer searching... | |
[INFO] nl.fokkezb.drawer@master:ios,android installed | |
[INFO] [email protected]:ios downloading... | |
[INFO] [email protected]:android downloading... | |
[INFO] [email protected]:ios installing... | |
[INFO] [email protected]:android installing... |