Skip to content

Instantly share code, notes, and snippets.

View tomasholderness's full-sized avatar

Tomas Holderness tomasholderness

View GitHub Profile
@tomasholderness
tomasholderness / sample_cognicity_flood_report_v1.json
Last active August 29, 2015 14:25
Sample flood report from CogniCity (PetaJakarta.org)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"coordinates": { type: 'Point', coordinates: [ 40.027435,-105.251945 ] },
"created_at": "Thu Oct 21 16:02:46 +0000 2010",
"favorited": false,
"truncated": false,
"id_str": "28039652140",
"entities": {
"urls": [
{
"expanded_url": null,
@tomasholderness
tomasholderness / pjkt_video
Last active August 29, 2015 14:02
Video embedding in PetaJakarta.org
<div id="headerwrap">
<div class="container">
<div class="jumbotron" style="padding-top:0px;">
<h1 id="title">PetaJakarta.org/banjir</h1>
<p class="lead"><b>petajakarta.org/banjir</b> is an open source, community-led platform to collect and disseminate information about flooding and critical water infrastructure in Jakarta</p>
<div id="video">
<p><iframe width="560" height="315" src="//www.youtube.com/embed/QubtNdfLQHk?rel=0" frameborder="0" allowfullscreen></iframe></p>
</div>
</div>
</div><!-- /container -->
@tomasholderness
tomasholderness / twitter_polarity.ipynb
Last active February 22, 2018 21:19
Plot polarity (sentiment) of tweets using TextBlob
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tomasholderness
tomasholderness / leaflet_poly_selection.html
Last active July 30, 2018 16:03
Use Leaflet.draw to generate polygon WKT for interactive map selection
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Leaflet &middot; Selection</title>
<!-- Tom Holderness - 2013 -->
<!--Styles -->
<link href="resources/css/leaflet.css" rel="stylesheet"/>
@tomasholderness
tomasholderness / GA_link_point_to_line_script.py
Last active May 12, 2019 09:15
Create line geometry between a point and nearest line in PostGIS using Python and GeoAlchemy2