Skip to content

Instantly share code, notes, and snippets.

@dekstop
dekstop / get_cohort.sql
Last active October 14, 2016 14:36
Here's my current set of #hotosm mapping initiatives — I classify projects based on keywords in TM2 project titles. I'm sure I've missed a few, but afaik there's no canonical listing.
CREATE OR REPLACE FUNCTION get_cohort(TEXT) RETURNS TEXT AS $$
BEGIN
RETURN CASE
WHEN $1 ILIKE '%Missing Maps%' OR $1 ILIKE '%MissingMaps%' THEN 'Missing Maps'
WHEN $1 ILIKE '%Ebola%' THEN 'Ebola response'
WHEN $1 ILIKE '%Kaligandaki%' AND $1 ILIKE '%Landslide%' THEN 'Kaligandaki landslide'
WHEN $1 ILIKE '%Nepal%' OR $1='<strong> IDP informal camps</strong>' THEN 'Nepal earthquake'
-- WHEN $1 ILIKE '%Nepal%' OR $1 ILIKE '%Kaligandaki%' OR $1='<strong> IDP informal camps</strong>' THEN 'Nepal earthquake'
WHEN $1 ILIKE '%Central African Republic%' OR $1 LIKE '%CAR%' THEN 'CAR'
WHEN $1 ILIKE '%South Sudan%' THEN 'South Sudan'
@dekstop
dekstop / gist:10fc20c5723036a443f0
Created January 21, 2015 23:47
All the series I've watched
2 Broke Girls
30 Rock
Awake
Black Mirror
Boardwalk Empire
Bored to Death
Borgen
Breaking Bad
Broad City
Bron, Broen
@dekstop
dekstop / aq_datastream_ids.txt
Created May 18, 2012 15:39
Air Quality metadata on Cosm, data from 2012-04-26
228 (none)
208 aqi
179 ozone
169 pm2.5
70 1
41 2
25 CO
24 NO2
23 temperature
23 humidity
@dekstop
dekstop / gist:2704468
Created May 15, 2012 19:38
Electromagnetic Field 2012 Call for Participation
Hey all,
As you may have heard we're organising a UK camping festival later this Summer: Electromagnetic Field 2012. We are now searching for contributors to give talks, workshops, and performances. We're also inviting communities to participate by forming camp villages.
More details on ticket sales will follow soon: follow @emfcamp for updates.
---
EMF 2012 CALL FOR PARTICIPATION
Gems included by the bundle:
* abstract (1.0.0)
* actionmailer (3.0.1)
* actionpack (3.0.1)
* activemodel (3.0.1)
* activerecord (3.0.1)
* activeresource (3.0.1)
* activesupport (3.0.1)
* arel (1.0.1)
* builder (2.1.2)