Skip to content

Instantly share code, notes, and snippets.

View DenisCarriere's full-sized avatar
🎯
Focusing

Denis DenisCarriere

🎯
Focusing
View GitHub Profile
@nsjames
nsjames / acchascode.cpp
Created August 26, 2018 11:02
Account Has Code - Basic EOS oracle for checking if an account has code on it.
#include <eosiolib/eosio.hpp>
#include <eosiolib/singleton.hpp>
using namespace eosio;
class acchascode : contract {
private:
// @abi table trustees
struct Trustee {
@rowanwins
rowanwins / turf-shapely.py
Last active June 17, 2017 14:55
Test turf/boolean modules against shapely
from shapely.geometry import asShape
import fiona
import os
import sys
turf_dir = sys.argv[1]
predicate = sys.argv[2]
def runTestOnFile(dir, file, turfResult):
fc = fiona.open(dir + file, 'r')
@james2432
james2432 / schools.geojson
Last active September 13, 2016 14:05
CECCE Schools
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import sys, marshal, functools, subprocess
child_script = """
import marshal, sys, types;
fn, args, kwargs = marshal.load(sys.stdin)
marshal.dump(
types.FunctionType(fn, globals())(*args, **kwargs),
sys.stdout)
"""
anonymous
anonymous / overpass.geojson
Created June 20, 2015 00:08
data exported by overpass turbo
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aaronpdennis
aaronpdennis / humanitarian-osm-tags.md
Last active November 7, 2016 15:29
OSM tags relevant to a humanitarian purposed basemap

The tags listed below are not distinctly represented in the global vector tileset mapbox.mapbox-streets-v5.

####tags found in Tacloban

building=damaged
building=collapsed
typhoon:damage=yes

barrier=debris
@KonradIT
KonradIT / HERO4BlackWifiHacking2.md
Last active March 8, 2016 23:34
GoPro HERO4 Black WIfi Hacking ep2
@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.

@willprice
willprice / .travis.yml
Last active August 15, 2023 17:12
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@andrewharvey
andrewharvey / inplace-mbtiles2osmand.sh
Last active January 13, 2023 16:39
In-place conversion of an mbtiles SQLite3 database into an osmand offline tiles SQLite3 database.
#!/bin/sh
# To the extent possible under law, the person who associated CC0
# with this work has waived all copyright and related or neighboring
# rights to this work.
# http://creativecommons.org/publicdomain/zero/1.0/
SCRIPT_DIR=`dirname $0`
if [ -e $1 ] ; then