Created by Christopher Manning




| Copyright (c) 2011 Dave Furfero, http://furf.com | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so, subject to | |
| the following conditions: | |
| Copyright (c) 2011 Dave Furfero, http://furf.com | |
| Permission is hereby granted, free of charge, to any person obtaining | |
| a copy of this software and associated documentation files (the | |
| "Software"), to deal in the Software without restriction, including | |
| without limitation the rights to use, copy, modify, merge, publish, | |
| distribute, sublicense, and/or sell copies of the Software, and to | |
| permit persons to whom the Software is furnished to do so, subject to | |
| the following conditions: | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2012 Sindre Sorhus <http://sindresorhus.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var vm = require('vm'); | |
| var argv = require('optimist').argv; | |
| function compileHandlebarsTemplate(file, onComplete) { | |
| //dummy jQuery | |
| var jQuery = function () { return jQuery } | |
| jQuery.ready = function () { return jQuery } | |
| jQuery.inArray = function () { return jQuery } |
Created by Christopher Manning




| var pcap = require('pcap'), // npm install pcap | |
| tcp_tracker = new pcap.TCP_tracker(), | |
| pcap_session = pcap.createSession('en1'); // Change to your interface | |
| pcap_session.on('packet', function (raw_packet) { | |
| var packet = pcap.decode.packet(raw_packet); | |
| tcp_tracker.track_packet(packet); | |
| }); | |
| tcp_tracker.on('http response body', function(session, http, data) { |
| var crypto = require('crypto') | |
| var request = require('request') | |
| var url = require('url') | |
| var irc = require('./IRC/lib/irc') | |
| var ntwitter = require('ntwitter') | |
| var twitter = require('twitter') | |
| var qs = require('querystring') | |
| // separate accounts to post and search because twitter was sending me 500s | |
| // when I tried to use the same oauth creds for both twitter() and ntwitter() |
| /* | |
| Relies on jQuery, underscore.js, Async.js (https://github.com/caolan/async), and zip.js (http://gildas-lormeau.github.com/zip.js). | |
| Tested only in Chrome on OS X. | |
| Call xlsxParser.parse(file) where file is an instance of File. For example (untested): | |
| document.ondrop = function(e) { | |
| var file = e.dataTransfer.files[0]; | |
| excelParser.parse(file).then(function(data) { | |
| console.log(data); |
| ifneq (,$(findstring /cygdrive/,$(PATH))) | |
| UNAME := Cygwin | |
| else | |
| ifneq (,$(findstring WINDOWS,$(PATH))) | |
| UNAME := Windows | |
| else | |
| UNAME := $(shell uname -s) | |
| endif | |
| endif |