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
phantomjs chart.js -input "{\"previousMonth\": { \"label\": \"Aug\", \"series\": [ { \"day\": \"01\", \"value\": \"472091.61\" }, { \"day\": \"02\", \"value\": \"472087.36\" }, { \"day\": \"03\", \"value\": \"472087.36\" }, { \"day\": \"04\", \"value\": \"472497.21\" }, { \"day\": \"05\", \"value\": \"470729.95\" }, { \"day\": \"06\", \"value\": \"470572.58\" }, { \"day\": \"07\", \"value\": \"470751.85\" }, { \"day\": \"08\", \"value\": \"470756.51\" }, { \"day\": \"09\", \"value\": \"470687.7\" }, { \"day\": \"10\", \"value\": \"470425.95\" }, { \"day\": \"11\", \"value\": \"470178\" }, { \"day\ |
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 () { | |
var mapCLArguments, | |
render, | |
args = {}, | |
env = { | |
'D' : 'https://devtrunk.awspcap.com', | |
'Q' : 'https://qatrunk.awspcap.com', | |
'S' : 'https://staging.personalcapital.com', | |
'P' : 'https://home.personalcapital.com' |
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
/* E*Trade Scrape | |
run on command line: casperjs etrade_scrape.js [USERNAME] [PASSWORD] [ACCT_LAST_4_DIGITS] | |
*/ | |
var casper = require('casper').create(); | |
var account_last_4 = casper.cli.raw.args[2]; | |
casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4'); | |
casper.start('https://us.etrade.com/home', function() { | |
// ERROR CHECK: | |
// User must enter USERNAME, PASSWORD, and ACCT_LAST_4_DIGITS parameters: |
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 captoraUtils = {}; | |
captoraUtils.getLandingPage = function(req, res, next){ | |
logger.debug('getLandingPage', landingPage) | |
var CAPTORA_PAGES_PREFIX = 'http://cdn.captora.com/pages/personalcapital.com/v1/html/', | |
CAPTORA_PAGES_DEFAULT = 'https://www.personalcapital.com', | |
CAPTORA_PAGES_TIMEOUT = 10, | |
landingPage = req.params.pageName, | |
responseStream = ''; |
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 () { | |
var config = { | |
/* define locations of mandatory javascript files */ | |
files: { | |
JQUERY: 'jquery.min.js', | |
UNDERSCORE: 'underscore.js', | |
RAPHAEL: 'raphael.min.js', | |
PERSPECTIVE: 'perspective.js' | |
} |
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
// Karma configuration | |
// Generated on Sun Sep 08 2013 07:19:12 GMT-0700 (PDT) | |
module.exports = function(config) { | |
config.set({ | |
// base path, that will be used to resolve files and exclude | |
basePath: '../', | |
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
<server> | |
<id>pcap-static</id> | |
<username>rgundlapalli</username> | |
<password>password</password> | |
</server> | |
.... | |
... | |
... | |
<repository> |
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
// adding close method to all backbone views | |
Backbone.View.prototype.close = function(){ | |
this.remove(); | |
this.unbind(); | |
if (this.onClose){ | |
this.onClose(); | |
} | |
} | |
myView.js |