Skip to content

Instantly share code, notes, and snippets.

View SomeKittens's full-sized avatar

Randall Koutnik SomeKittens

View GitHub Profile
@SomeKittens
SomeKittens / comcast.js
Created July 3, 2016 23:34
Comcast injection code
! function(t, e, i) {
function o(t) {
return t
}
function n(t) {
var e, i = [],
o = function() {
var o = arguments,
n = o.length;

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 http://gis.stackexchange.com/questions/200767/geographic-characteristics-by-lat-long and http://opendata.stackexchange.com/questions/9145/geospatial-data-at-a-particular-lat-long. I've also skimmed through the sites listed here: http://opendata.stackexchange.com/questions/7303/collection-of-large-geospatial-datasets and it seems to me that mos

@SomeKittens
SomeKittens / atldr.md
Last active January 27, 2016 05:14
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

Stats:

http://i.imgur.com/wYPgGcK.png

@SomeKittens
SomeKittens / Notes.md
Last active April 12, 2016 19:05
Notes from "Debugging Node in Production

Angular Buddies FOSS Bash!

(pssst - not a member of Angular Buddies yet? Join here!. You're looking for the #bash channel.)

Welcome to the first FOSS Bash! This is an experiment - everything's subject to change, feedback welcome.

The goal of the FOSS Bash is like an Amish barn rasing - lots of smart folks getting together to accomplish a great thing in a day. Today's target is UI Layout. My goal is to halve the number of issues, down to 13, and zero open PRs.

How you can help

#!/bin/zsh
# Noodling around with window auto-setup
# http://movingtofreedom.org/2010/08/10/arranging-windows-from-the-gnulinux-command-line-with-wmctrl/
left_monitor="0"
middle_monitor="1300"
right_monitor="3201"
get_window_id() {
return $(wmctrl -l | grep "$1" | tail -1 | cut -f1 -d" ")
@SomeKittens
SomeKittens / aResults.md
Last active September 18, 2015 20:48
JavaScript Array.prototype vs for loops
[randallkoutnik:~/Dropbox/node/perf]$ node index.js
--- .forEach ---
.forEach took 26.271 ms
for loop took 2.369 ms
--- filter ---
.filter took 6.790 ms
for loop took 4.008 ms
@SomeKittens
SomeKittens / tmp.html
Last active August 29, 2015 14:23
Batarang repro
<!DOCTYPE html>
<html ng-app="app">
<head>
<title>asdf</title>
</head>
<body ng-controller="asdf as A">
{{ A.text }}
<button ng-click="A.button();">A button!</button>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
<script type="text/javascript">

From stevefulton on this Cracked article

All these are reason why, I believe, the "prequels" were not the actual stories, but propaganda stories created by Palpatine and his minions to make the Jedi look terrible and worthless. Midiclorians were created so that the rest of the people in the universe would not try to become Jedi, as they would "measure" their "Midiclorian level" and find that it was low or non-existent...because they don't exist. The Jedi in the stories and bumbling fools who can't see what is right in front of them. At the same time, they make Palapatine look like the smartest, most powerful in the universe. Who would ever want to mess with him? The "real" stories of the Clone Wars, etc. are yet to be told, and I'm pretty sure we will see them surface as a new trilogy very soon.

@SomeKittens
SomeKittens / wat.js
Last active August 29, 2015 14:15
wat
if((parseInt(document.all.bmembers.value)!=0)&&((CheckRadioList("atitle"))||(document.all.afirstname.value!="")||(document.all.alastname.value!="")||((document.all.aphone.value!="")&&(document.all.aphone.value!="###-###-####"))||((document.all.aemail.value!="")&&(document.all.aemail.value!="[redacted email domain]")&&(document.all.aemail.value!="firstname.lastname[redacted email domain]")&&(document.all.aemail.value!="[redacted email]"))||(document.all.asector.value!="")||(document.all.aposition.value!="")||(document.all.agroup.value!="")||(CheckRadioList("alanguage"))||(document.all.aaddress.value!="")||(document.all.adirector.value!="")))