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 ItemModel = Backbone.Model.extend({ | |
// emit fetch:error, fetch:success, fetch:complete, and fetch:start events | |
fetch: function(options) { | |
var _this = this; | |
options = options || {}; | |
var error = options.error; | |
var success = options.success; |
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
Backbone.PageableCollection.extend({ | |
mode: 'server', | |
state: { | |
pageSize: 15, | |
firstPage: 0 | |
}, | |
queryParams: { | |
pageSize: 'limit', | |
currentPage: null, | |
totalPages: 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
cordova run android --device && adb logcat *:S CordovaLog:V CordovaWebView:V |
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
function copyText (text) { | |
var div = document.getElementById('__special_copy_div'), | |
saveSelection, | |
selection, | |
rng, | |
i; | |
if (!div) { | |
div = document.createElement('pre'); | |
div.id = '__special_copy_div'; |
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
function extend() { | |
var a = arguments, target = a[0] || {}, i = 1, l = a.length, deep = false, options; | |
if (typeof target === 'boolean') { | |
deep = target; | |
target = a[1] || {}; | |
i = 2; | |
} | |
if (typeof target !== 'object' && !isFunction(target)) target = {}; |
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
while test $# -gt 0; do | |
case "$1" in | |
-h|--help) | |
echo "$package - attempt to capture frames" | |
echo " " | |
echo "$package [options] application [arguments]" | |
echo " " | |
echo "options:" | |
echo "-h, --help show brief help" | |
echo "-a, --action=ACTION specify an action to use" |
NewerOlder