Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// to save bytes... | |
var T = true; | |
/* TLDs as of Jan 2013 | |
* For faster lookup we store TLDs as properties of an object. | |
* | |
* Source: http://data.iana.org/TLD/tlds-alpha-by-domain.txt | |
*/ | |
var topLevelDomains = { | |
'ac':T,'ad':T,'ae':T,'aero':T,'af':T,'ag':T,'ai':T,'al':T,'am':T,'an':T,'ao':T,'aq':T,'ar':T,'arpa':T,'as':T,'asia':T,'at':T,'au':T,'aw':T,'ax':T,'az':T, |
require 'rubygems' | |
require 'pg' | |
require 'eventmachine' | |
module Subscriber | |
def initialize(pg) | |
@pg = pg | |
end | |
def notify_readable |
(function(window, document) { | |
if ( !window.NodeFilter ) { | |
var NodeFilter = function() {}; | |
NodeFilter.FILTER_ACCEPT = 1; | |
NodeFilter.FILTER_REJECT = 2; | |
NodeFilter.FILTER_SKIP = 3; | |
NodeFilter.SHOW_ALL = 0xFFFFFFFF; |