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
// The following data should be run in the console while viewing the page https://read.amazon.com/ | |
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension | |
var db = openDatabase('K4W', '3', 'thedatabase', 1024 * 1024); | |
getAmazonCsv = function() { | |
// Set header for CSV export line - change this if you change the fields used | |
var csvData = "ASIN,Title,Authors,PurchaseDate\n"; | |
db.transaction(function(tx) { |
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
// | |
// blog.clearlyionnovative.com | |
// twitter: @aaronksaunders | |
// | |
// Model file for integration Appcelerator Titanium Alloy with Wordpress JSON Plugin | |
// | |
exports.definition = { | |
config : { | |
"columns" : {}, |
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
### | |
------> HTTPClientWithCache <------ | |
This class is a wrapper around the standard Titanium.Network.HTTPClient(), but it adds a | |
few nice features: | |
* A cache backed by a SQLite database. All HTTPClientWithCache instances use the same database table, with | |
the primary cache key being a hash of the full URL (and any data parameters in a POST) | |
* The cache is automatically pruned before each query | |
* A retry mechanism, so that you can retry a particular query a number of times before failing. |