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"), | |
fs = require("fs"), | |
cheerio = require("cheerio"), | |
json2csv = require("json2csv"), | |
url = "https://www.wilkescc.edu/about-us/directory/?letter="; | |
var alpha = "abcdefghijklmnopqrstuvwxyz".toUpperCase().split(""); | |
var all_emails = [], | |
first_names = [], |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Generating SVG from vanilla JS</title> | |
</head> | |
<body> | |
<svg class="target-element"></svg> | |
<script> |
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 testScript = ` | |
[ double dup + ] | |
[ quadruple double double ] | |
1 2 + print | |
double print | |
quadruple print | |
2 jmp | |
3 + | |
4 + | |
if 255 print 0 then |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Groovy</title> | |
</head> | |
<body> | |
<canvas></canvas> | |
<style> | |
canvas { |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Voronoi</title> | |
</head> | |
<body> | |
<canvas class="voronoi"></canvas> | |
<style> | |
canvas { |
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 isNumber = /^-?\d[\d.,]*$/; | |
var cast = function(str) { | |
if (typeof str != "string") return str; | |
if (str == "true" || str == "false") { | |
return str == "true" ? true : false; | |
} | |
if (isNumber.test(str)) { | |
return parseFloat(str.replace(/,/g, "")); | |
} |
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 async = require("async"); | |
var cheerio = require("cheerio"); | |
var FeedParser = require("feedparser"); | |
var request = require("request"); | |
var shell = require("shelljs"); | |
var fs = require("fs"); | |
var path = require("path"); | |
var url = require("url"); | |
var zlib = require("zlib"); |
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 minimist = require("minimist"); | |
var sax = require("sax"); | |
var fs = require("fs"); | |
var args = minimist(process.argv); | |
var input = fs.createReadStream(args.i); | |
var parser = sax.createStream(); |
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
define(async function() { | |
console.log("a loaded"); | |
var b = await require("b.js"); | |
return { a: true, b }; | |
}); |
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
// Built-in modules | |
var csv = require("csv"); | |
var fs = require("fs"); | |
var url = require("url"); | |
// Loaded from NPM | |
var $ = require("cheerio"); // jQuery-like DOM library | |
var async = require("async"); // Easier concurrency utils | |
var request = require("request"); // Make HTTP requests simply |