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
//taking a crack at it | |
//totally untested, probably doesn't work | |
var BatChannel = function(endpoint, interval) { | |
this.endpoint = endpoint; | |
this.pending = []; | |
this.interval = interval || 30000; | |
this.tick(); | |
}; | |
BatChannel.prototype = { |
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 loadEmmet = true; | |
//one-time startup | |
var init = function() { | |
aceConfig.themes.forEach(function(theme) { | |
var option = document.createElement("option"); | |
option.innerHTML = theme.label; | |
option.setAttribute("value", theme.name); |
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
/*ROUTE CODE*/ | |
server.route({ | |
method:"GET", | |
path: "/books", | |
handler: function(request, reply){ | |
fs.readFile("books.json", "utf8", function(err,data){ | |
var links =[]; | |
var list = JSON.parse(data); | |
reply.view("book-list", { |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
# This sets the VM that we want to use - in this case, a classic Ubuntu 12.01 box | |
config.vm.box = "hashicorp/precise32" | |
# This makes the VM available in your browser on port 8080, and on MySQL's default port | |
config.vm.network "forwarded_port", guest: 80, host: 1234 #HTTP | |
#config.vm.network "forwarded_port", guest: 3306, host: 3306 #MySQL |
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
var request = require("request"); | |
var dateFormat = require("dateformat"); | |
var today = new Date(); | |
/* Format the date to be todays date in mm-dd-yyy format for later use */ | |
today = dateFormat(today, "mm-dd-yyyy"); | |
onCallDateFormat = dateFormat(today, "yyyy-mm-dd"); | |
var jiraUrl = ""; |