Aurelia Moser, CartoDB Workshop - Hasadna, IL
July 6, 2015
Find this document here:
- Stackedit:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> | |
customhoverwindows | CartoDB | |
</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
//Logs current map center and zoom level for use in map init options | |
//Use it to find that perfect intial view without having to use trial and error | |
map.on('dragend',getInit).on('zoomend',getInit); | |
function getInit() { | |
var c = map.getCenter(); | |
console.log('center: [' + c.lat + ',' + c.lng + '],\nzoom: ' + map.getZoom()); | |
} |
//node script for generating complex cartoCSS for torque | |
//as value increases, duration of marker gets longer, | |
//radius gets larger, and color moves up the ramp. | |
var breaks = [0,10,50,100] | |
var colors = ['#eff3ff','#bdd7e7','#6baed6','#2171b5']; | |
var data = { | |
"tableName":"#nepaltrends", | |
"valueCondition":0, |
-- | |
-- Create a table in your CartoDB editor called 'version_control' | |
-- Run the following SQL in your editor to create the needed columns | |
-- | |
ALTER TABLE version_control ADD COLUMN data json; | |
ALTER TABLE version_control ADD COLUMN source_id integer; | |
ALTER TABLE version_control ADD COLUMN table_name text; | |
ALTER TABLE version_control ADD COLUMN tg_op text; |
Aurelia Moser, CartoDB Workshop - Hasadna, IL
July 6, 2015
Find this document here:
WITH deltas as ( | |
SELECT | |
st_distance(the_geom::geography, lag(the_geom::geography, 1) over(order by timestamp)) as ddist, | |
timestamp - lag(timestamp, 1) over(order by timestamp) as dt | |
from out_2 offset 1000 | |
) | |
select avg(ddist/dt) as speed from deltas |
This page can always be found at: http://bit.ly/cdb-harvard
########################################################################### | |
# Script per automatitzar la revisió de traduccions d'OSGeo-Live | |
########################################################################### | |
# | |
# Converteix a UTF8, treu el BOM, converteix CRLF a UNIX, copia els nous | |
# continguts al checkout local del repo, compila els html i els obre en FF. | |
# | |
# Llavors cal: revisar l'aspecte visual de cada document, corregir-lo si | |
# convé, i fer 'svn commit'. | |
# |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"font_size": 10, | |
"highlight_line": true, | |
"rulers": [80,120], | |
"draw_minimap_border": true | |
} |