- Name
- Short background
- One thing you enjoy about teaching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function: ST_Buffer_Meters(geometry, double precision) | |
DROP FUNCTION ST_Buffer_Meters(geometry, double precision); | |
Usage: SELECT ST_Buffer_Meters(the_geom, num_meters) FROM sometable; */ | |
CREATE OR REPLACE FUNCTION ST_Buffer_Meters(geometry, double precision) | |
RETURNS geometry AS | |
$BODY$ | |
DECLARE | |
orig_srid int; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function: utmzone(geometry) | |
DROP FUNCTION utmzone(geometry); | |
Usage: SELECT ST_Transform(the_geom, utmzone(ST_Centroid(the_geom))) FROM sometable; */ | |
CREATE OR REPLACE FUNCTION utmzone(geometry) | |
RETURNS integer AS | |
$BODY$ | |
DECLARE | |
geomgeog geometry; | |
zone int; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
#legend { | |
position:absolute; | |
bottom:20px; | |
right: 5px; | |
background: #D3D3D3; | |
border-radius: 10px; | |
display: block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the center point of the map on load. Change this to adjust the center point of the map. | |
var map_centerpoint = [40.712784, -74.005941]; | |
// zoom level of the map on load. Higher number zooms the map in closer | |
var zoom_level = 11 | |
// your visualization layer from CartoDB | |
var myVizLayer = 'https://richard-datapolitan.cartodb.com/api/v2/viz/c35e85b2-5370-11e5-b844-0e9d821ea90d/viz.json'; | |
// the name of the CartoDB table you want to query against | |
var point_table_name = 'map_data_sgr'; | |
var line_table_name = 'nyct_routes_1'; | |
var sublayers=[]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo yum install update | |
sudo yum groupinstall "Development Tools" | |
sudo yum install python-devel libpng-devel freetype-devel | |
#the last two are necessary for pip to run without failing with error 'Command "python setup.py egg_info" failed with error code 1' | |
sudo pip install matplotlib pandas #Finally it works! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#------------------------------------------------------------ | |
# We assume the dump files have been generated using pg_dump: | |
# | |
# pg_dump -a --column-inserts -x -O -t table_name database_name -f /tmp/dmp_file_name | |
# | |
#------------------------------------------------------------ | |
# Provide details of your CartoDB account: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<!-- Based on an example from Chris Whong's class on creating a basic interactive map with JavaScript. See the CartoDB Academy for a step-by-step tutorial: http://docs.cartodb.com/tutorials/create_map_cartodbjs.html --> | |
<html> | |
<head> | |
<title>Your Title Here</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote set-url origin [email protected]:user1/your-repo-name.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git remote set-url origin [email protected]:user1/your-repo-name.git |