This file contains hidden or 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
<html><head><title>Geocommons and Leaflet JS</title> | |
<!-- Leaflet CSS --> | |
<link rel="stylesheet" href="CloudMade-Leaflet-404b097/dist/leaflet.css" /> | |
<!--[if lte IE 8]><link rel="stylesheet" href="CloudMade-Leaflet-404b097/dist>/leaflet.ie.css" /><![endif]--> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> | |
<!-- Leaflet JavaScript --> | |
<script type="text/javascript" src="CloudMade-Leaflet-404b097/dist/leaflet.js"></script> |
This file contains hidden or 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
# custom login link | |
RewriteRule ^login$ http://localhost/whitelabel/wp-login.php [NC,L] |
This file contains hidden or 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
SELECT rid, band, (stats).* FROM (SELECT rid, band, ST_SummaryStats(rast, band) As stats FROM bioclim10_29 CROSS JOIN generate_series(1,3) As band WHERE rid=2) As foo; |
This file contains hidden or 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
/* | |
* Copyright (C) 2010 Google Inc. All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are | |
* met: | |
* | |
* * Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* * Redistributions in binary form must reproduce the above |
This file contains hidden or 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
#!/usr/bin/python | |
import shapely, json, math, time | |
from shapely import speedups, wkb | |
from shapely.geometry import LineString, Point, Polygon | |
from osgeo import ogr | |
from optparse import OptionParser | |
from math import atan2, degrees, sin, cos | |
# Be fast if possible. |
This file contains hidden or 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
<!-- edit this; the PDF file must be on the same domain as this page --> | |
<iframe id="input" src="your-file.pdf"></iframe> | |
<!-- embed the pdftotext service as an iframe --> | |
<iframe id="processor" src="http://hubgit.github.com/2011/11/pdftotext/"></iframe> | |
<!-- a container for the output --> | |
<div id="output"></div> | |
<script> |
This file contains hidden or 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
<?php | |
/* Place the file into WordPress root folder and open the file in your browser. */ | |
/* Settings */ | |
define( 'BLOG_TITLE', 'WordPress Dev' ); | |
define( 'USER_NAME', 'admin' ); | |
define( 'USER_EMAIL', '[email protected]' ); | |
define( 'USER_PASSWORD', '123456' ); | |
define( 'WP_SITEURL', 'http://wp.dev' ); |
This file contains hidden or 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
<html><head><title>Geocommons and Leaflet JS</title> | |
<!-- Leaflet CSS --> | |
<link rel="stylesheet" href="CloudMade-Leaflet-404b097/dist/leaflet.css" /> | |
<!--[if lte IE 8]><link rel="stylesheet" href="CloudMade-Leaflet-404b097/dist>/leaflet.ie.css" /><![endif]--> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script> | |
<!-- Leaflet JavaScript --> | |
<script type="text/javascript" src="CloudMade-Leaflet-404b097/dist/leaflet.js"></script> |
This file contains hidden or 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
/************************************************************************** | |
* OSM2GEO - OSM to GeoJSON converter | |
* OSM to GeoJSON converter takes in a .osm XML file as input and produces | |
* corresponding GeoJSON object. | |
* | |
* AUTHOR: P.Arunmozhi <[email protected]> | |
* DATE : 26 / Nov / 2011 | |
* LICENSE : WTFPL - Do What The Fuck You Want To Public License | |
* LICENSE URL: http://sam.zoy.org/wtfpl/ | |
* |