View uk-up-down-shortest.js
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"type":"FeatureCollection","features":[ | |
{"type":"Feature","properties": {"stroke":"#ff0000"},"geometry": {"type": "LineString","coordinates": [[-0.106218,51.522217],[-0.108231,51.522064]]}}, | |
{"type":"Feature","properties": {"stroke":"#ff0000"},"geometry": {"type": "LineString","coordinates": [[-0.110502,51.522018],[-0.108231,51.522064]]}}, | |
{"type":"Feature","properties": {"stroke":"#ff0000"},"geometry": {"type": "LineString","coordinates": [[-0.107955,51.523087],[-0.108231,51.522064]]}}, | |
{"type":"Feature","properties": {"stroke":"#ff0000"},"geometry": {"type": "LineString","coordinates": [[-0.113311,51.521507],[-0.110502,51.522018]]}}, | |
{"type":"Feature","properties": {"stroke":"#ff0000"},"geometry": {"type": "LineString","coordinates": [[-0.110594,51.525040],[-0.107955,51.523087]]}}, | |
{"type":"Feature","properties": {"stroke":"#ff0000"},"geometry": {"type": "LineString","coordinates": [[-0.105331,51.518532],[-0.108231,51.522064]]}}, | |
{"type":"Feature","properties": {"stroke":"#ff0000"},"geometry": {"type": "Li |
View Inflate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.Arrays; | |
import java.util.zip.InflaterInputStream; | |
import javax.xml.bind.DatatypeConverter; | |
public class Inflate { | |
public static void main(String[] args) throws Exception { | |
String input = "6881EDC1010D000000C2A0F74F6D0E37A00000000000000000BE0D21000001"; |
View sendbreak.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <termios.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
int main(int argc,char** argv) { | |
if (argc<2) { | |
printf("Usage: One parameter, the device to send the " | |
"break to. Example: %s /dev/tty.usbmodem622 \n",argv[0]); | |
} else { | |
int tty_fd = open(argv[1], O_RDWR | O_NONBLOCK); |
View serializer.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
const uint16_t MESSAGE_TYPE_A = 123; | |
typedef struct { | |
uint16_t messageType; | |
} Message; |
View setup-mapbox.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Based on http://www.mapbox.com/tilemill/docs/guides/osm-bright-ubuntu-quickstart/ | |
sudo add-apt-repository --yes ppa:developmentseed/mapbox | |
sudo apt-get update | |
sudo apt-get --yes install tilemill libmapnik nodejs postgresql postgresql-9.1-postgis build-essential python-dev protobuf-compiler libprotobuf-dev libtokyocabinet-dev python-psycopg2 libgeos-c1 python-pip git | |
sudo pip install imposm | |
mkdir osm |