Skip to content

Instantly share code, notes, and snippets.

SomeKittens / comcast.js
Created Jul 3, 2016
Comcast injection code
View comcast.js
! function(t, e, i) {
function o(t) {
return t
function n(t) {
var e, i = [],
o = function() {
var o = arguments,
n = o.length;
View gist:0ad8bdeb0a9cb5cde5ef67afb1c38bbd

I'm trying to find geospatial data, specifically terrain/topography/landcover like urban, forest, desert, tundra, ocean, river, etc...

The first question I had asked on this site (see below) had an answer which stated that I'd need to interrogate the layers in order to generate the dataset I'd like to get. I have some idea of what the user is talking about now, but it implies that in order for me to get this data, I will need to learn some sort of GIS application, load up some raster/vector data, and then get the information on a per lat/long/elevation basis.

Some related questions I've asked on stack exchange while trying to figure out how to get this data include and I've also skimmed through the sites listed here: and it seems to me that mos

SomeKittens /
Last active Apr 12, 2016
Notes from "Debugging Node in Production
SomeKittens /
Last active Jan 27, 2016
npm progress bar test

First run (no progress bar): npm install 26.31s user 6.47s system 26% cpu 2:01.97 total

Second run (progress bar): npm install 29.98s user 5.68s system 36% cpu 1:36.98 total


SomeKittens /
Created Jan 9, 2014
ElasticSearch script install
unzip -d /usr/local/elasticsearch
cd /usr/local/elasticsearch/elasticsearch-0.90.9
bin/plugin -install elasticsearch/elasticsearch-cloud-aws/1.16.0
bin/plugin -install mobz/elasticsearch-head
mv * /usr/local/elasticsearch/
cd ..
rm -R elasticsearch-0.90.9
cd config
echo '' >> elasticsearch.yml
View lintMe.js
function() {
var myVariable = 'test 123';
console.log(myVaraible); // Uh oh! There's a typo here.
// JSLint tells us `'myVaraible' was used before it was defined`, catching the error before it's run
SomeKittens / cookies.js
Created Oct 25, 2013
Logs in and dumps cookies
View cookies.js
var Browser = require('zombie');
var url = '';
browser = new Browser();
browser.visit(url, function(e) {
browser.wait(function(window) {
return window.document.querySelector('#openid_highlight');
}, function() {
SomeKittens / login.js
Created Oct 25, 2013
Zombie.js login to StackOverflow
View login.js
var Browser = require('zombie');
var url = '';
//url = '';
browser = new Browser({maxWait: 500});
//browser.cookies(url).set('session', '123');
browser.visit(url, function(e) {
if (e) return console.error(e);
SomeKittens / troll.js
Created Oct 21, 2013
Slowly removes the page
View troll.js
document.addEventListener('click', function() {
window.setTimeout(function() {
var all = document.querySelectorAll('*');
all[Math.floor(Math.random() * all.length)].style.display = 'none';
}, Math.floor(Math.random() * 5000));