Skip to content

Instantly share code, notes, and snippets.

View zerebubuth's full-sized avatar

Matt Amos zerebubuth

View GitHub Profile
@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:1817398
Created February 13, 2012 14:52
Draft new README

Description

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

Something more about what the rails port is for here...

Running it

You can find documentation on [how to setup and

@zerebubuth
zerebubuth / gist:1876695
Created February 21, 2012 13:59
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 / 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 / welcome.yml
Created August 12, 2013 18:23
The text for the new "welcome" page on OSM. Please translate!
welcome_page:
title: Welcome!
introduction_html: |
Welcome to OpenStreetMap, the free and editable map of the world. Now that you're signed
up, you're all set to get started mapping. Here's a quick guide with the most important
things you need to know.
whats_on_the_map:
title: What's on the Map
on_html: |
OpenStreetMap is a place for mapping things that are both <em>real and current</em> -
@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