Just a quick snippet
Forked from Chrysto's Pen Fullscreen slides with TweenLite, CSSPlugin and ScrollToPlugin.
A Pen by Captain Anonymous on CodePen.
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
font: 10px sans-serif; | |
} | |
.axis path, | |
.axis line { |
CREATE OR REPLACE FUNCTION axh_miles_test(input GEOMETRY) | |
RETURNS GEOMETRY AS $$ | |
DECLARE | |
-- sql TEXT; | |
first GEOMETRY; | |
next GEOMETRY; | |
back GEOMETRY; | |
last GEOMETRY; |
<!-- | |
/////////////////////////////////////// | |
// example_8 web class bootcamp 2014 // | |
/////////////////////////////////////// | |
//////////// Parsons MFADT //////////// | |
/////////////////////////////////////// | |
//Created by: fito_segrera | |
//fii.to | |
GENERATIVE DRAWING |
select * from ( | |
select the_geom as the_geom_webmercator, | |
min(ST_Distance_Sphere(st_transform(st_centroid(the_geom), 4326), st_transform(otherGeom, 4326)))/1600 as minDist | |
from ( | |
select grids.the_geom, st_collect(st_transform(timchung.allbusiness.the_geom, 3857)) as otherGeom | |
from ( | |
SELECT CDB_HexagonGrid( | |
ST_SetSRID( | |
ST_Envelope( | |
ST_Collect( |
var express = require('express'); | |
var app = express(); | |
var http = require('http'), | |
https = require('https'), | |
querystring = require('querystring'), | |
Step = require('step'), | |
fs = require('fs'), | |
// jQuery = require('jquery'); | |
parseString = require('xml2js').parseString; |
Just a quick snippet
Forked from Chrysto's Pen Fullscreen slides with TweenLite, CSSPlugin and ScrollToPlugin.
A Pen by Captain Anonymous on CodePen.
Select ST_AsText( | |
ST_Transform( | |
ST_SetSRID( | |
ST_MakePoint(xcoord,ycoord), | |
2263) | |
, 4326) | |
) from pluto limit 10; | |
import sysconfig | |
config = sysconfig.get_config_vars() | |
keys = config.keys() | |
keys.sort() | |
for k in keys: | |
print '%s: %s' % (k, config[k]) | |
import csv | |
import urllib | |
import re | |
from nyc_geoclient import Geoclient | |
from sys import argv | |
from sys import exit | |
script, infile, outfile = argv | |
g = Geoclient('9cd0a15f', '54dc84bcaca9ff4877da771750033275') |
Here's how this all started. I was working on my project to analyze heat/hot water complaints. I downloaded all the complaints for this heat season (there's over 200,00), geocoded them to obtain the bbls, and then imported them into postgres. I wanted to match complaints with their owners in order to find out whose responsible for not providing tenants' with essential services.
So I fired up PSQL and started typing out some queries.
SELECT bbl,