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
<?php | |
//TODO: Change this to match your path | |
$pathToJoomla = "/Applications/MAMP/htdocs/joomla32"; | |
if (!is_dir(realpath($pathToJoomla))) { | |
throw new Exception("Could not find the folder: $pathToJoomla"); | |
} | |
//Fake some required variables |
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 request = require("request"), | |
jsdom = require("jsdom"), | |
$ = require("jquery")(jsdom.jsdom().createWindow()), | |
http = require('http'); | |
var options = { | |
uri: "http://en.wikipedia.org/wiki/List_of_PlayStation_Vita_games", | |
method: "GET" | |
}; | |
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
class ImpureCalc { | |
constructor() { | |
this.currentTotal = 0; | |
} | |
addToTotal(valueToAdd) { | |
this.currentTotal += valueToAdd; | |
return this.currentTotal; | |
} | |
} |