Skip to content

Instantly share code, notes, and snippets.

View atorralb's full-sized avatar
🎯
Focusing

Angel T. Durán atorralb

🎯
Focusing
View GitHub Profile
@atorralb
atorralb / bot.js
Created September 1, 2016 18:32
bot
//DEBUG=nightmare* Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & node --harmony app.js
'use strict';
var Nightmare = require('nightmare');
var vo = require('vo');
var occ = require ('./nightmare-occ');

###var vs let vs const var is only used for backward compatibility with plain javascript (ES5 and before) "var" variables are visible outside the block scope

var m = "hello";
if (m){
  var i:number;
  for(i=0; i<3;i++){
 console.log(m + ' ' + i)