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
/******************************************************************** | |
* initialize() | |
* setup the google map, draw the polygon on it, set event handlers | |
********************************************************************/ | |
function initialize() { | |
//create the google map | |
var map = new google.maps.Map(document.getElementById("map"), { | |
zoom: 4, | |
center: new google.maps.LatLng(22.7964, 79.8456), | |
mapTypeId: google.maps.MapTypeId.HYBRID |
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
<body onload="initialize()"> | |
<script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script> | |
<div id="map" style="width:900px; height: 600px;"> | |
</div> | |
</body> |
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
//create a global variable that will point to the tooltip in the DOM | |
var tipObj = null; | |
//offset along x and y in px | |
var offset = { | |
x: 20, | |
y: 20 | |
}; | |
/******************************************************************** |
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
console.log("---> Running"); | |
const curl = require("curl"); | |
const jsdom = require("jsdom"); | |
const url = "http://www.imdb.com/list/ls004489992/"; | |
curl.get(url, null, (err,resp,body)=>{ | |
if(resp.statusCode == 200){ | |
parseData(body); | |
} |
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 Excel = require("exceljs"); | |
var fs = require("fs"); | |
function churnString(valString, dataType){ | |
let valNum = parseFloat(valString); | |
let percentageTypes = [ | |
'natWageGrowth', 'natEmpGrowth', 'natTurnoverRate', 'wgJobHolders', 'wgJobSwitchers', 'wgEntrants', | |
'wgValue', 'wgHolders', 'wgSwitchers', 'wgEntrants','empGrowth','turnover' | |
]; |
OlderNewer