Skip to content

Instantly share code, notes, and snippets.

View willwhite's full-sized avatar

Will White willwhite

View GitHub Profile
var pipe = function() {
r.pipe(w);
}
if (false === w.write(body, 'ascii')) {
w.on('drain', pipe);
} else {
pipe();
};
@willwhite
willwhite / index.html
Created November 3, 2011 03:47 — forked from wboykinm/gls.html
MultiLayer Wax.G Switcher
<html>
<head>
<title>Wax.G Layer Switcher</title>
<script src='http://maps.google.com/maps/api/js?sensor=false' type='text/javascript'></script>
<script src='http://www.geosprocket.com/mapbox-wax/dist/wax.g.js' type='text/javascript'></script>
<script src='http://code.jquery.com/jquery-1.6.4.min.js' type='text/javascript'></script>
<link href='http://www.geosprocket.com/css/basic.css' rel='stylesheet' type='text/css' />
<link href='http://www.geosprocket.com/css/buttons.css' rel='stylesheet' type='text/css' />
will@will-VirtualBox:~$ ldd `which node`
linux-gate.so.1 => (0x00cbf000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0x00f4c000)
libssl.so.1.0.0 => /lib/i386-linux-gnu/libssl.so.1.0.0 (0x0046b000)
libcrypto.so.1.0.0 => /lib/i386-linux-gnu/libcrypto.so.1.0.0 (0x00291000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0x0088b000)
libutil.so.1 => /lib/i386-linux-gnu/libutil.so.1 (0x00581000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0x00bb8000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0x00fb1000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0x00978000)
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb
index db12c7e..7a2e188 100644
--- a/Library/Formula/gdal.rb
+++ b/Library/Formula/gdal.rb
@@ -85,7 +85,7 @@ class Gdal < Formula
"--with-libtool",
# GDAL native backends.
- "--with-libtiff=internal", # For bigTIFF support
+ "--with-libtiff=/usr/local/lib/libtiff", # For bigTIFF support
--- texas.html 2011-10-27 10:10:29.000000000 -0400
+++ demo.html 2011-10-26 17:02:57.000000000 -0400
@@ -19,6 +19,7 @@
<script>
var mm = com.modestmaps;
var map;
+ var interaction;
// Each time a layer is clicked, we request the TileJSON from
// MapBox Hosting and use that to configure the map with `map.setProvider()`.
$('li a').click(function() {
--- texas.html 2011-10-27 10:08:49.000000000 -0400
+++ text.html 2011-10-26 17:02:57.000000000 -0400
@@ -34,7 +34,6 @@
tilejson.center[0]),
tilejson.center[2] - 3);
wax.mm.zoomer(map, tilejson).appendTo(map.parent);
- wax.mm.interaction(map, tilejson);
interaction = wax.mm.interaction(map, tilejson);
} else {
// We used the TileJSON to configure the map.
@willwhite
willwhite / index.html
Created October 8, 2011 19:59
Modest Maps layer switcher demo
<html>
<head>
<!-- NOTE: Do not use these URLs in production. If they ever change your site will break.
Instead, download the files to your web server and host them there. -->
<script src='https://raw.github.com/mapbox/wax/v3.0.8/ext/modestmaps.min.js' type='text/javascript'></script>
<script src='https://raw.github.com/mapbox/wax/v3.0.8/dist/wax.mm.js' type='text/javascript'></script>
<script src='http://code.jquery.com/jquery-1.6.4.min.js' type='text/javascript'></script>
</head>
<body>
<h3>Choose a layer</h3>
willwhite ~: curl -I http://{a,b,c,d}.tiles.mapbox.com/crossdomain.xml
HTTP/1.0 200 OK
Access-Control-Allow-Methods: GET
Access-Control-Allow-Origin: *
Content-Type: text/x-cross-domain-policy; charset=utf-8
Date: Sat, 10 Sep 2011 22:21:41 GMT
Server: nginx/0.7.65
X-Powered-By: Express
Content-Length: 251
Age: 4
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]>
<Map srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" background-color="#b8dee6">
<Style name="world" filter-mode="first">
<Rule>
<PolygonSymbolizer fill="#ffffff" />
</Rule>
</Style>
<item>
<title>TileMill 0.5.0</title>
<sparkle:releaseNotesLink>http://tilemill.com/platforms/osx/changelog.html</sparkle:releaseNotesLink>
<pubDate>Wed, 24 Aug 2011 17:27:42 -0400</pubDate>
<enclosure url="https://github.com/downloads/mapbox/tilemill/TileMill-0.5.0.zip" sparkle:version="2.0" length="75302497" type="application/octet-stream" sparkle:dsaSignature="MTlkYjExMTdiMDllMGZkMGVjNjE2MjhlYjBiOTY4ZjQxNWNlMzBiMgo="/>
</item>
</channel>
</rss>