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
http://www.corporate.walmart.com/ | |
http://www.exxonmobil.com/ | |
http://www.chevron.com/ | |
http://www.berkshirehathaway.com/ | |
http://www.apple.com/ | |
http://www.phillips66.com/ | |
http://www.gm.com/ | |
http://www.ford.com/ | |
http://www.ge.com/ | |
http://www.valero.com/ |
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 huntsman = require('huntsman'), | |
spider = huntsman.spider(), | |
fs = require('fs'), | |
opts = require('nomnom') | |
.option('domain', { | |
abbr: 'd', | |
help: 'Domain to scan.', | |
required: true | |
}) | |
.option('startUrl', { |
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 summary = require('node-tldr'), | |
sentiment = require('sentiment'), | |
opts = require('nomnom') | |
.option('url', { | |
abbr: 'u', | |
help: 'URL to summarize', | |
required: true | |
}) | |
.parse(); | |
summary.summarize(opts.url, function(result, failure) { |
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
//Collecting links is a below-the-api job... | |
//(http://www.forbes.com/sites/anthonykosner/2015/02/04/google-cabs-and-uber-bots-will-challenge-jobs-below-the-api/) | |
var huntsman = require('huntsman'), | |
spider = huntsman.spider(), | |
fs = require('fs'), | |
out = fs.createWriteStream('example.com.csv'); | |
spider.extensions = [ | |
huntsman.extension( 'recurse' ), // load recurse extension & follow anchor links |
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 | |
//I have made a lot of nice things with PHP. But this isn't one of them. | |
if (!function_exists('lets_confuse_strings_and_symbols')) { | |
function lets_confuse_strings_and_symbols ($funny_function_name) { | |
return eval($$funny_function_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
#!/usr/bin/perl -w | |
opendir DIR, "."; | |
my @files = grep { $_ ne '.' && $_ ne '..' } readdir DIR; | |
closedir DIR; | |
for $file (@files) { | |
my $lfile = lc($file); | |
if ($lfile ne $file) { | |
print $file . "\n"; |
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 twitter = require('ntwitter'); | |
var twit = new twitter({ | |
consumer_key: '', | |
consumer_secret: '', | |
access_token_key: '', | |
access_token_secret: '' | |
}); | |
twit.stream('statuses/filter', {'track': 'rgiii'}, function(stream) { |
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 http = require('http'), | |
path = require('path'), | |
fs = require('fs'), | |
localPath = "/PATH/TO/LOCAL/FOLDER/", | |
remoteServer = { host: 'www.example.com', | |
port: 80 | |
}, | |
mimeTypes = { 'js' : 'text/javascript', | |
'css' : 'text/css', | |
'html' : 'text/html', |
NewerOlder