Skip to content

Instantly share code, notes, and snippets.

@ian29
ian29 / ship.md
Last active August 29, 2015 14:15
Name Units Code Level Source Update Frequency
Temperature C* TMP 80m GFS 0.25 6 Hrs
Snow Depth M SNOD Surface HRRR Hourly
Wind Gust M/s GUST Surface GFS 6 Hrs
Total Precipitation kg/m^2 APCP Surface HRRR Hourly
item quantity acquired?
avocados 12
bacon 4 saturday
bagels 3 doz. sunday morning
baguettes 2 sunday morning
butter 1
cake 1 saturday/sunday
cheddar 1 saturday
cider 2 saturday/sunday
@ian29
ian29 / legend.html
Last active December 12, 2015 01:38
<div class='legend-title'>American Red Cross Funded Disaster Respones:</div>
<div class="countries">
<span class='swatch'></span>
<span class="label">Countries Recieving American Red Cross Funds/span>
</div>
<style type="text/css">
.swatch {
background:#f12a2a;
height: 16px;
width: 16px;

Mapbox streets QA

problem where z level(s) sktich comments status
orphan/ambiguous dots errywhere 4 [dots][dots] better, not fully fixed. There is no way to really solve this right now - the best we can do is make sure the scalerank densities work well at each zoom level so we're not tring to label much more than can fit on the map
island abbreviations at zoom 4 seychelles, sao tome, cabo verde 4 [sc][1] // [cv][2] // [comparison][3] - slightly more consistent now, not a big deal
triple names belgium 4-5 [belgium][4] reflects local languages wontfix
act ibt overlapping australia 4 [australia][5] - done!
low scalerank labels too black? - - - looks too much like google, departs from mb streets aesthetic done!
city labeling iceland > 8 [iceland zoom 7][8] // [comparison zoom 6][9] iceland has no cities except capital until zoom 8 << i think this is ok, just not a lot of big cities in iceland, altho it wo
select
id,
sum(st_area((gval).geom)
/ 10000) as total_area_ha,
round( min((gval).val)) as min_slope,
round( sum((gval).val * st_area((gval).geom))
/ st_area(st_collect((gval).geom))
) as avg_slope_sqm,
round( max((gval).val)) as max_slope
from (
@ian29
ian29 / slope_area3.sql
Created May 17, 2012 17:18 — forked from anonymous/slope_area3
slope and area constraints on multiple contiguous polygons
Drop view slope_area3;
create or replace view slope_area3 as
select gid::integer, new_geom, area_hectare from
(select generate_series(1, ST_NumGeometries(mymulti)) as gid,
ST_GeometryN(mymulti, generate_series(1, ST_NumGeometries(mymulti))) as new_geom,
st_area(ST_GeometryN(mymulti, generate_series(1, ST_NumGeometries(mymulti))))
/10000 AS area_hectare
from (select max(gid) as gid, st_memunion(the_geom) as mymulti
from
(select * from parcel_stats

Datos SITEL de Jalisco para OpenStreetMap

Datos de Carretera Preparados para Contribución con JOSM

Estamos animados de liberar un conjunto de datos de todas las carreteras en el estado Mexicano de Jalisco, listo para contribuirlos con el editor popular JOSM. Mira el repositorio osm-jalisco para bajar los datos y aprender como empezar.

roads tilemill

Una prestación estilizada en TileMIll

<style>
.wax-tooltip {
position: absolute;
height: auto;
background: #fff;
border: 1px solid #8C8C8C;
border: 1px solid rgba(0, 0, 0, .45);
-moz-box-shadow: 0 1px 8px rgba(0, 0, 0, .3);
-webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, .3);
box-shadow: 0 1px 8px rgba(0, 0, 0, .3);