Skip to content

Instantly share code, notes, and snippets.

Avatar

Randall Koutnik SomeKittens

View GitHub Profile
@SomeKittens
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 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 Jan 27, 2016
npm progress bar test
View atldr.md

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 Apr 12, 2016
Notes from "Debugging Node in Production
View Notes.md
View fossday.md

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

View startup.sh
#!/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 Sep 18, 2015
JavaScript Array.prototype vs for loops
View aResults.md
[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 Aug 29, 2015
Batarang repro
View tmp.html
<!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">
View sw.md

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.

View wat.js
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!="")))
You can’t perform that action at this time.