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
/****************************************************************************** | |
* | |
* SCROLLER | |
* Author: Kerri Shotts | |
* Version: 0.1 alpha | |
* License: MIT | |
* | |
* This library is intended to be similar to iScroll-lite in that it should be | |
* a relatively fast method of scrolling content without being horribly laggy | |
* or cause incorrect "clicks" to be registered. |
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
/*jshint asi:true, forin:true, noarg:true, noempty:true, eqeqeq:false, bitwise:true, undef:true, curly:true, browser:true, devel:true, smarttabs:true, maxerr:50 */ | |
/****************************************************************************** | |
* | |
* UI-GESTURES | |
* Author: Kerri Shotts | |
* Version: 0.1 alpha | |
* License: MIT | |
* | |
* A simple, no-frills gesture recognizer. Permits long-press recognition, | |
* horizontal swipe recognition, and vertical swipe recognition. Recognizing |
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
PKUTIL.loadQueue = Array(); | |
PKUTIL.XHRinProgress = false; | |
PKUTIL.XHRTimer = -1; | |
PKUTIL.load = function(theFileName, aSync, completion) | |
{ | |
if (device.platform != "WinCE") | |
{ | |
PKUTIL._load(theFileName, aSync, completion); | |
return; |
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
/*jshint asi:true, forin:true, noarg:true, noempty:true, eqeqeq:false, bitwise:true, undef:true, curly:true, browser:true, devel:true, smarttabs:true, maxerr:50 */ | |
/****************************************************************************** | |
* | |
* FILEUTIL | |
* Author: Kerri Shotts | |
* | |
* This library includes routines to deal with the FILE API, (which is... a bit | |
* painful.) The purpose of the library is to reduce the amount of work necessary | |
* to go through obtaining a file system, working with directories and files, | |
* etc. That isn't to say that we can eliminate callbacks or even callback |
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
/*jshint asi:true, forin:true, noarg:true, noempty:true, eqeqeq:false, bitwise:true, undef:true, curly:true, browser:true, devel:true, smarttabs:true, maxerr:50 */ | |
/****************************************************************************** | |
* | |
* SOAP | |
* Author: Kerri Shotts | |
* | |
* This library includes simple SOAP functions. MIT license. | |
* | |
* | |
* Usage is pretty straightforward: |
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
#!/bin/bash | |
# | |
# this is a wrapper around PG's ./create command. It asks for | |
# each portion separately. | |
# | |
# Author: Kerri Shotts | |
# License: MIT | |
# | |
# Get the path to the PhoneGap installation |
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
// based on and inspired by https://gist.github.com/1026439 and https://gist.github.com/3798781 | |
// | |
// MIT license. Use however you'd like. | |
// | |
// first, define our macro for delaying our transition: | |
#define PKWaitDelay(dly, block) dispatch_after(dispatch_time(DISPATCH_TIME_NOW,dly*100000),dispatch_get_current_queue(), ^{ block }) | |
// then, inside your AppDelegate.m in didFinishLaunchingWithOptions: | |
UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.window.frame]; |
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
// UIFont+Utility.h | |
// UIFont+Utility.[h|m] is (C) Kerri Shotts 2013, and released under an MIT license. | |
#import <UIKit/UIKit.h> | |
/** | |
* | |
* PKFontNormal = no modifications to the font; i.e., -Regular, -Roman, -Book, etc. | |
* PKFontBold = bold font desired (if possible); i.e., -Bold, -Black, -Heavy, etc. | |
* PKFontItalic = italic font desired (if possible); i.e., -Italic, -Oblique, etc. |
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( Q, BaseObject, globalContext ) { | |
/** | |
* Defined by Q, actually, but defined here to make type handling nicer | |
* @typedef {{}} Promise | |
*/ | |
var DEBUG = false; | |
/** | |
* Requests a quota from the file system | |
* @method _requestQuota |
OlderNewer