This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
Recently, I had to implement an offline mapping solution for an iOS application. Here's a walkthrough of how to do it.
I generated a tile database using TileMill. I used the Route-Me iOS library which provides a map view that supports offline tile sources.
/* | |
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod | |
May contain errors where latitude and longitude are off. Use at own non-validated risk. | |
*/ | |
SET NAMES utf8; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS postcodes_geo; |
#!/bin/bash | |
# Sync Homebrew installations between Macs via Dropbox | |
# | |
BREW="/usr/local/bin/brew" | |
# first get local settings | |
echo "Reading local settings ..." | |
rm -f /tmp/brew-sync.* |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<style> | |
html, body, #map { | |
height: 100%; | |
padding: 0; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title></title> | |
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.js'></script> | |
<script src='http://codeorigin.jquery.com/jquery-1.10.2.min.js'></script> | |
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.css' rel='stylesheet' /> | |
<!--[if lte IE 8]> | |
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.4.0/mapbox.ie.css' rel='stylesheet'> |
CSS selector minification is a missed opportunity of saved bytes. Currently, Google uses it but not much beyond that.
The concept is change .box
to .b
and <div class="box">
to <div class="b">
.
There is room for issues with JavaScript so that should be treated as a nice-to-have and be conservatively avoided.
To convert HTML and CSS, it would be a 2 step process:
package fr.pinguet62.util; | |
/** | |
* Wrapper for hexavigesimal representation and conversions.<br /> | |
* {@code 0} = {@code "A"}<br/> | |
* {@code 25} = {@code "Z"}<br/> | |
* {@code 26} = {@code "AA"}<br/> | |
* {@code 27} = {@code "AB"}<br/> | |
* {@code 730} = {@code "ABC"} | |
*/ |
On June 19th at BETA, we had the pleasure of launching the public beta of Transitmix, a sketching tool for transit planners (both professional and armchair) to quickly design routes and share with the public. Transitmix is a cross-team, collaborative project that has received contributions from no fewer than eight 2014 fellows from more than seven different city teams*, and it has been an amazing opportunity for all of us to learn from each other, share skills, and build on each other's work to create something truly awesome.
Transitmix is the first tool of its kind. It allows users to draw bus routes on any city's road grid and specify frequency and times of service to determine estimated total cost of the system. Users can then share their maps for others to view and "remix" by adding, changing, or dele