Skip to content

Instantly share code, notes, and snippets.

@bradleygore
bradleygore / horsemanTest.js
Created September 3, 2017 04:27
Testing out functionality of loading the same URL in node-horseman - both in existing window and in a new tab
const Horseman = require('node-horseman'), //`npm i node-horseman`
testReportURL = 'http://techinfo.honda.com/rjanisis/content/rjxa_isisviewer_ui.aspx?v=&m=T2AD&k=pubs/sm/1/2/Contents/enu/61T2AD/GEN/SCT/SC/SYS/G006389_enu/web/html/G006389_enu&p=SM&t=H&model=ACCORD&year=2017&trim=&keyword=&path=&dbkey=61T2AD_G006389_enu&country=1&lang=0',
args = require('yargs').argv; //`npm i yargs`
let horseman = new Horseman({
injectJquery: false,
loadImages: false,
}),
open;
@bradleygore
bradleygore / app.ts
Created May 26, 2016 14:43
NativeScript with android-checkout Java lib
let application = require('application');
import * as storeSvc from './monetization/store';
application.mainModule = 'main-page';
application.cssFile = './app.css';
application.start();
storeSvc.init();