Skip to content

Instantly share code, notes, and snippets.

View willwhite's full-sized avatar

Will White willwhite

View GitHub Profile
Merging libraries.
Importing: OpenLayers.js
Importing: OpenLayers/BaseTypes.js
Importing: OpenLayers/Filter.js
Importing: OpenLayers/Map.js
Importing: OpenLayers/Rule.js
Importing: OpenLayers/SingleFile.js
Importing: OpenLayers/Util.js
Importing: OpenLayers/BaseTypes/Class.js
Importing: OpenLayers/Control/Attribution.js
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>MapBox Afghanistan Winter with Google Maps API</title>
<script src="http://js.mapbox.com/g/2/mapbox.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAyy_sg_kvGifscGkzZ2uxzxTGv8pFig_qdcIeIanIjQzecSm0lRRq4s4kzJSNgFaqRoQiY2UvM2DKJA" type="text/javascript"></script>
<link rel=stylesheet href="gmapbox.css" type="text/css" media=screen />
</head>
<script type="text/javascript">
function initialize() {
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>MapBox Afghanistan Winter with Google Maps API</title>
<script src="http://js.mapbox.com/g/2/mapbox.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAAyy_sg_kvGifscGkzZ2uxzxTGv8pFig_qdcIeIanIjQzecSm0lRRq4s4kzJSNgFaqRoQiY2UvM2DKJA" type="text/javascript"></script>
<link rel=stylesheet href="gmapbox.css" type="text/css" media=screen />
</head>
<script type="text/javascript">
function initialize() {
diff --git js/theme.js js/theme.js
index e63029b..5976949 100644
--- js/theme.js
+++ js/theme.js
@@ -59,14 +59,6 @@ Drupal.behaviors.jake = function (context) {
Drupal.jake.checkl10n();
});
- // Hide the context ui category selector if there is only one option
- $('#block-spaces_dashboard-editor .block-title').click(function() {
@willwhite
willwhite / gist:628906
Last active September 23, 2015 22:57
// Use node.js to generate md5 hash
var hash = require('crypto').createHash('md5').update('STRING TO HASH').digest('hex');
module senchalabs connect 0.3.0
module visionmedia express 1.0.0
module documentcloud underscore 1.1.1
module andris9 node-markdown v0.1.0
module developmentseed vargs v0.1.0
module developmentseed cradle v0.2.0
module wdavidw node-csv-parser v0.0.2
module donpark hbs 0.0.2
module caolan async v0.1.0
module developmentseed display v0.0.4
Warning: node-mapnik initialization failed
in "/Users/diggersf/src/TileMill/lib/node/mapnik/settings.js" the input_plugins directory: "Usage: mapnik-config [OPTION]" does not exist
Auto-loading of Datasource input plugins will not be available.
See the docs/FAQ on ideas for how to fix this issue.
module.exports.paths = {
'fonts': '/usr/local/lib/mapnik2/fonts',
'input_plugins': 'Usage: mapnik-config [OPTION]',
};
module.exports = {
'foo': function() {
assert.response(app, {
url: '/foo',
method: 'PUT',
headers: {
'content-type': 'application/json'
},
data: '{bar: "baz"}'
}, {
/Users/diggersf/src/TileMill/lib/node/mapnik/index.js:118
dirs.push('C:\Windows\Fonts'));
^
SyntaxError: Unexpected token )
at Module._compile (node.js:458:37)
at Module._loadScriptSync (node.js:469:10)
at Module.loadSync (node.js:338:12)
at loadModule (node.js:283:14)
at require (node.js:411:14)
at Object.<anonymous> (/Users/diggersf/src/TileMill/lib/node/tilelive.js/lib/tilelive/map.js:6:14)