Skip to content

Instantly share code, notes, and snippets.

View meetar's full-sized avatar

Peter Richardson meetar

View GitHub Profile
@meetar
meetar / scene.yaml
Last active January 22, 2016 19:01 — forked from anonymous/scene.yaml
[This is a Tangram scene, made with Tangram Play.]
# Author @patriciogv - 2015
cameras:
camera1:
type: perspective
styles:
space-tile:
shaders:
blocks:
global: |
# include: transit.yaml
scene:
background:
color: red
sources:
mapzen:
type: TopoJSON
url: http://vector.mapzen.com/osm/all/{z}/{x}/{y}.topojson?api_key=vector-tiles-HqUVidw
@meetar
meetar / hi8-anim-howto.md
Created November 29, 2015 18:39 — forked from celoyd/hi8-anim-howto.md
A way to make Himawari-8 animations

Himawari-8 animation tutorial

Here’s how to make animations like this one. It requires intermediate Unix command-line knowledge, to install some tools and to debug if they don’t work. You’ll need these utilities:

  • curl (or you can translate to wget)
  • convert and montage, part of ImageMagick
  • ffmpeg, plus whatever codecs
  • parallel, for iteration that’s nicer than shell for loops or xargs
  • run everything in zsh for leading 0s in numerical ranges to work
cameras:
perspective:
type: perspective
vanishing_point: [0, -500]
lights:
directional1:
type: directional
direction: [.5, .1, -1]
diffuse: .2
ambient: 0.8
@meetar
meetar / gist:629d8caa286b9d1ef3b0
Created July 16, 2015 20:48
citygml-to-obj converter log
Building has already been converted: output/BLDG_000300090026bde5.obj
Building has already been converted: output/BLDG_0003000e006e7101.obj
Building has already been converted: output/BLDG_0003000e00094924.obj
Building has already been converted: output/BLDG_000300000019db81.obj
Building has already been converted: output/BLDG_00030009004875e1.obj
Building has already been converted: output/BLDG_000300060008057f.obj
Building has already been converted: output/BLDG_00030000001a5b8c.obj
Building has already been converted: output/BLDG_00030009006919e4.obj
Building has already been converted: output/BLDG_000300000019d1ca.obj
Building has already been converted: output/BLDG_000300000019cd4d.obj
@meetar
meetar / gist:76d9b6f0eebd0973917b
Created June 27, 2015 03:46
undistort gopro hero4 wide-angle images
# requires Imagemagick - can be installed with 'brew install Imagemagick'
convert G0040300.JPG -distort barrel "0.10,-0.32,0" output.jpg
@meetar
meetar / tangram-halftone.glsl
Last active August 29, 2015 14:05
Halftone shader example for Tangram
# Adapted from Stefan Gustavson's GLSL halftone shader demo for WebGL
# http://webstaff.itn.liu.se/~stegu/webglshadertutorial/shadertutorial.html
globals: |
uniform float dot_frequency;
uniform float dot_scale;
uniform bool true_color;
// Antialiasing
float aastep(float threshold, float value) {
@meetar
meetar / HOTQuickstart.md
Last active July 30, 2020 12:15
How to get started contributing to a Humanitarian OpenStreetMap task

##How to get started contributing to a Humanitarian OpenStreetMap Team task

###Overview

OpenStreetMap (OSM) is an open-source map of the world that anyone can edit. But like any map, it's incomplete.

The Humanitarian OpenStreetMap Team (HOT) helps organize people to improve the OSM map for crisis areas, mostly so aid workers can find their way around and make decisions about undermapped places. The data in these crisis areas is often very poor, or completely non-existent. Therefore any contribution you make at all will be a vast improvement, and could materially help people who are on the ground right now, looking at this data as you edit it, and deciding where to go and who to help.

There are many HOT tasks active at once. As of August 2014, the highest-priority tasks are Gaza and areas affected by the West African Ebola outbreak.

Delivered-To: [email protected]
Received: by 10.49.71.51 with SMTP id r19csp39572qeu;
Sat, 9 Feb 2013 23:07:38 -0800 (PST)
X-Received: by 10.220.241.80 with SMTP id ld16mr14012352vcb.5.1360480058553;
Sat, 09 Feb 2013 23:07:38 -0800 (PST)
Return-Path: <[email protected]>
Received: from n25.mail01.mtsvc.net (mailout34.mail01.mtsvc.net. [216.70.64.74])
by mx.google.com with ESMTPS id p6si34997071vdv.19.2013.02.09.23.07.38
(version=TLSv1 cipher=RC4-SHA bits=128/128);
Delivered-To: [email protected]
Received: by 10.49.71.51 with SMTP id r19csp39572qeu;
Sat, 9 Feb 2013 23:07:38 -0800 (PST)
X-Received: by 10.220.241.80 with SMTP id ld16mr14012352vcb.5.1360480058553;
Sat, 09 Feb 2013 23:07:38 -0800 (PST)
Return-Path: <[email protected]>
Received: from n25.mail01.mtsvc.net (mailout34.mail01.mtsvc.net. [216.70.64.74])
by mx.google.com with ESMTPS id p6si34997071vdv.19.2013.02.09.23.07.38
(version=TLSv1 cipher=RC4-SHA bits=128/128);