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>Simple Sparkline using SVG Path and d3.js</title> | |
| <script src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
| <style> | |
| /* tell the SVG path to be a thin blue line without any area fill */ | |
| path { | |
| stroke: steelblue; | |
| stroke-width: 1; | |
| fill: none; |
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
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/rotating-orthographic |
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 | |
| /** | |
| * Spatialite to GeoJSON | |
| It needs: | |
| * apache2 | |
| * php5-cli | |
| * php5-sqlite |
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) 2016 Aaron Bycoffe | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
| The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
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
| var my_element = document.getElementById('my-element'); | |
| //-- Returns true/false | |
| my_element.isVisible(my_element); |
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
| window.S = function(s) { | |
| return document[{ | |
| '#': 'getElementById', | |
| '.': 'getElementsByClassName', | |
| '@': 'getElementsByName', | |
| '=': 'getElementsByTagName'}[s[0]] | |
| || 'querySelectorAll'](s.slice(1)) | |
| }; | |
| // [S('#header'), S('.container'), S('?div')] |
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
| // based on https://gist.github.com/Potfur/5576225 & https://github.com/james2doyle/saltjs | |
| // more info: https://plus.google.com/109231487156400680487/posts/63eZzzrBSb6 | |
| window.$ = function(s) { | |
| var c = { | |
| '#': 'ById', | |
| '.': 'sByClassName', | |
| '@': 'sByName', | |
| '=': 'sByTagName'}[s[0]]; | |
| return document[c?'getElement'+c:'querySelectorAll'](s.slice(1)) | |
| }; |
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
| ''' | |
| A simple tool for exporting from a PostGIS table to GeoJSON and TopoJSON. Assumes Python 2.7+, | |
| psycopg2, and TopoJSON are already installed and in your PATH. | |
| Adapted from Bryan McBride's PHP implementation | |
| (https://gist.github.com/bmcbride/1913855/) | |
| by John Czaplewski | [email protected] | @JJCzaplewski | |
| TODO: | |
| - Add argument for SRS |
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
| //////////////////////////////////////////////////////////////////////////////// | |
| // @file : i8n.js // | |
| // @summary : Internacionalization module // | |
| // @version : 0.1 // | |
| // @project : i8n // | |
| // @description : // | |
| // @author : Benjamin Maggi // | |
| // @email : [email protected] // | |
| // @date : 7 Mar 2014 // | |
| // -------------------------------------------------------------------------- // |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Extending Window To Create A Dynamic Scope Chain</title> | |
| <script type="text/javascript"> | |
| // I return a function with a "scope" property that can be | |
| // used to alter the runtime bindings of the functions. | |
| var getFoo = (function(){ |
OlderNewer