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
#!/usr/bin/env node | |
/** | |
* Lets clean up some files that conflicts with aapt. | |
* https://osvaldojiang.com/p/137 | |
* https://github.com/driftyco/ionic/issues/4584 | |
* http://stackoverflow.com/questions/4666098/why-does-android-aapt-remove-gz-file-extension-of-assets | |
* https://forum.ionicframework.com/t/android-build-failed-ionic-cordova-unable-to-add-asset-file-file-already-in-archive/41146 | |
*/ |
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
'use strict'; | |
module.exports = function(Coupon) { | |
Coupon.isGrabbedASIN = isGrabbedASIN; | |
function isGrabbedASIN(productId, userId, cb) { | |
Coupon.findOne( | |
{ where: | |
{ | |
and: [ |
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 nba = new Bloodhound({ | |
datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, | |
queryTokenizer: Bloodhound.tokenizers.whitespace, | |
prefetch: '../data/nba.json' | |
}); | |
var nhl = new Bloodhound({ | |
datumTokenizer: function(d) { return Bloodhound.tokenizers.whitespace(d.team); }, | |
queryTokenizer: Bloodhound.tokenizers.whitespace, | |
prefetch: '../data/nhl.json' |