Skip to content

Instantly share code, notes, and snippets.

View zerebubuth's full-sized avatar

Matt Amos zerebubuth

View GitHub Profile
@zerebubuth
zerebubuth / gdb_rr.log
Created November 7, 2014 20:24
Failure for "step_thread" test case in `rr` in 64-bit mode.
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
@zerebubuth
zerebubuth / example.rs
Created January 19, 2015 22:30
Expected associated type, found u64.
pub trait Timestamp { }
impl Timestamp for u64 { }
pub trait TimeSettable {
type Time;
pub fn set_time(&mut self, t: Self::Time);
}
pub struct StructWithVariable<T: Timestamp> {
@zerebubuth
zerebubuth / Cargo.toml
Created January 24, 2015 18:09
Example program using timely as a library
[package]
name = "timely-example"
version = "0.0.0"
authors = [ "Matt Amos <zerebubuth@gmail.com>" ]
[dependencies.timely]
git = "https://github.com/zerebubuth/timely-dataflow.git"
branch = "make-library"
@zerebubuth
zerebubuth / test_master.log
Created May 8, 2015 12:46
Mapbox studio master test failures
> mapbox-studio@0.2.7 pretest /home/matt/Programming/Work/mapbox-studio
> npm ls --depth=Infinity && tape ./test/duplicate_module.pretest.js
mapbox-studio@0.2.7 /home/matt/Programming/Work/mapbox-studio
├── abaculus@1.1.1
├─┬ body-parser@1.9.3
│ ├── bytes@1.0.0
│ ├── depd@1.0.1
│ ├── iconv-lite@0.4.5
# place type num without with percentiles of population
# places pop pop 1st 5th 50th 95th 99th
sea 91 91 0
state 1656 1312 344 9035 60925 999685 7918293 26553000
province 38 37 1 5000000 5000000 5000000 5000000 5000000
city 7615 3823 3792 5000 16449 131000 1606000 7044118
town 74429 48297 26132 336 1158 12560 63296 111000
borough 53 32 21 304 332 1344 6091 620416
suburb 81667 76783 4884 20 124 1822 45028 226948
quarter 2028 2009 19 22 22 1000 23000 23000
diff --git a/scene.yaml b/scene.yaml
index e0b23a4..2d1a0d7 100644
--- a/scene.yaml
+++ b/scene.yaml
@@ -3000,28 +3004,35 @@ layers:
landuse:
data: { source: osm }
- filter:
- any:
@zerebubuth
zerebubuth / gist:1817152
Created February 13, 2012 14:04
Pseudo-ruby for ODbL change "bot"
class Cleaner
def is_clean?(obj)
# objects tagged odbl=clean are defined as clean by the user, so
# we take this version as definitively clean, regardless of any
# prior history.
if obj.has_tag? "odbl" => "clean"
return true
else
# otherwise, this version is clean if and only if the previous
# version is clean (or this is the first version) *AND* the
@zerebubuth
zerebubuth / gist:1925920
Created February 27, 2012 18:11
Draft new README

Description

This is the Rails port, the Ruby on Rails application that powers OpenStreetMap.

The Rails port provides almost all the services which are available on the OpenStreetMap site, including:

  • The web site itself, including the edit pages.
  • The editing API.
@zerebubuth
zerebubuth / gdb_output.txt
Last active October 11, 2015 16:53
Test case which can cause libosmium to hang.
$ gdb --args ./main /home/matt/Downloads/history/seattle_2015.osm.pbf
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
CREATE OR REPLACE FUNCTION mz_calculate_poi_level(
aerialway_val text,
aeroway_val text,
amenity_val text,
barrier_val text,
craft_val text,
highway_val text,
historic_val text,
leisure_val text,
lock_val text,