Skip to content

Instantly share code, notes, and snippets.

@feomike
feomike / mygisttest
Created May 24, 2012 02:53
gisttest
#some test
schieffer-2008-10152008-Debate=Transcript(http://www.debates.org/index.php?page=october-15-2008-debate-transcript)
BOB SCHIEFFER, MODERATOR
[*] SCHIEFFER: Good evening. And welcome to the third and last presidential debate of 2008, sponsored by the Commission on Presidential Debates. I'm Bob Schieffer of CBS News.The rules tonight are simple. The subject is domestic policy. I will divide the next hour-and-a-half into nine-minute segments.I will ask a question at the beginning of each segment. Each candidate will then have two minutes to respond, and then we'll have a discussion.I'll encourage them to ask follow-up questions of each other. If they do not, I will.The audience behind me has promised to be quiet, except at this moment, when we welcome Barack Obama and John McCain.(APPLAUSE)Gentlemen, welcome.By now, we've heard all the talking points, so let's try to tell the people tonight some things that they -- they haven't heard. Let's get to it.Another very bad day on Wall Street, as both of you know. Both
@feomike
feomike / gist:4336230
Last active December 9, 2015 22:18
open data response
to - to http://smathermather.wordpress.com/2012/12/13/architecture-of-an-open-data-initiative-fed-style/
great approach, and thanks for writing down the longer thread. i think these kinds of things are great and one benefit is that you didn't take the normal tact of suggesting things outside the limits of what govt. can really do. nicely done. if i could offer a few responses they would be respectively below;
1) is size really scale? not in the mapping sense, but more in the demand aggregation sense. i think generally what i want is to have folks see their data as an asset, like common infrastructure (roads etc) which have a high degree of pubic funding and a high degree of multi-use for public and private benefit
2) humbled; was not originally thinking of hierarchy in the federal, regional, state, local government sense, just in the logical sense (e.g. <doman>.gov/<topic area #1>/<sub-topic n...>. what if govt. gave some common tools that fostered a common approach, something like <doman>.n/data/<de
@feomike
feomike / readme.md
Last active December 16, 2015 17:19
tiling polygons
WITH geomext AS(select st_setSRID(cast(st_envelope(s.geom) as geometry),4326)
as geom_ext, 4 as x_gridcnt, 4 as y_gridcnt, s.geom as geom
from (select geom from " + tempTableName + "
where gid = " + str(gid[0]) + ") as s),
grid_dim AS (select (st_xmax(geom_ext) -
st_xmin(geom_ext))/x_gridcnt as g_width,
st_xmin(geom_ext) as xmin, st_xmax(geom_ext) as xmax,
(st_ymax(geom_ext)-st_ymin(geom_ext))/y_gridcnt as g_height,
st_ymin(geom_ext) as ymin, st_ymax(geom_ext) as ymax from geomext),
<html><body><p>hello world</p></body></html>
@feomike
feomike / index.html
Last active December 19, 2015 14:18
d3 mapbox.js example
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.css' rel='stylesheet' />
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/queue.v1.min.js"></script>
<style>
body { margin:0; padding:0; }
@feomike
feomike / index.html
Last active December 19, 2015 23:19
mapbox.js composting example
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
@feomike
feomike / index.html
Last active August 5, 2016 15:51
mapbox.js wms example
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.3.1/mapbox.css' rel='stylesheet' />
<style>
body { margin:0; padding:0; }
#map { position:absolute; top:0; bottom:0; width:100%; }
</style>
@feomike
feomike / index.html
Last active December 22, 2015 09:49
ptc example
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<script src='//api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.js'></script>
<link href='//api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.css' rel='stylesheet' />
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/queue.v1.min.js"></script>
<style>
body { margin:0; padding:0; }