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
| pollUntil: (pollingModel, checkModel, attr, delay) -> | |
| @listenTo pollingModel, "sync", => | |
| if !checkModel.get(attr) | |
| setTimeout => | |
| pollingModel.fetch() | |
| , delay | |
| else | |
| pollingModel.trigger "finished:polling" | |
| pollingModel.fetch() |
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
| if this.rawPassword | |
| plainKey = decryptKey(this.rawPassword, user.key, null, true) | |
| if user.key != plainKey | |
| user.key = plainKey | |
| key = plainKey | |
| else | |
| delete user.key | |
| else | |
| delete user.key |
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
| _pageJSContext[@"sendRequest"] = ^(NSString *eventName, NSString *payload) { | |
| __strong DNTBrowserViewController *strongSelf = weakSelf; | |
| DDLogDebug(@"CS -> KEY-OVERLAY: %@", eventName); | |
| // pass message from webview to keyboard overlay context | |
| if (strongSelf.keyboardOverlayWebViewController.overlayJSContext) | |
| { | |
| JSValue *jsOnRequest = strongSelf.keyboardOverlayWebViewController.overlayJSContext[@"onRequest"]; |
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
| # new view with form to create entity | |
| entity = App.request "new:entity" | |
| @listenTo entity, "created", => | |
| App.vent.trigger "entity:created", entity | |
| entity.save attr1:attr1val | |
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 jsdom = require("jsdom"); | |
| var request = require('request'); | |
| var sys = require('sys'); | |
| var exec = require('child_process').exec; | |
| getPage = function(someUri, callback) { | |
| request({uri: someUri, headers:{'User-Agent': 'Mozilla/5.0'}}, function (error, response, body) { | |
| callback(body); | |
| }); | |
| } |
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
| Charges.Charge = (function(_super) { | |
| __extends(Charge, _super); | |
| function Charge() { | |
| _ref1 = Charge.__super__.constructor.apply(this, arguments); | |
| return _ref1; | |
| } | |
| Charge.prototype.template = "card/charges/transaction"; |
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
| Charges.Charge = (function(_super) { | |
| __extends(Charge, _super); | |
| function Charge() { | |
| _ref1 = Charge.__super__.constructor.apply(this, arguments); | |
| return _ref1; | |
| } | |
| Charge.prototype.template = "card/charges/transaction"; |
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
| @Maskme.module "CardApp.Transactions", (Transactions, App, Backbone, Marionette, $, _) -> | |
| class Transactions.Layout extends App.Views.Layout | |
| template: "card/transactions/layout" | |
| regions: | |
| transactionsRegion: "#card-transactions-region" | |
| class Transactions.Transactions extends App.Views.CollectionView | |
| itemView: Transactions.Transaction |
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
| { | |
| "name": "abine_crawler_worker", | |
| "version": "0.0.1", | |
| "description": "crawl worker for iron.io", | |
| "main": "crawl_driver.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "Abine", | |
| "license": "BSD", |
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
| runtime "node" | |
| file "instrument.js" | |
| file "crawl_site.js" | |
| file "phantomjs" | |
| file "iron.json" | |
| file "package.json" | |
| build "npm config set strict-ssl false;npm install --production" |
NewerOlder