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 | |
| // ffmpeg command. currently converts mp3 to oggvorbis | |
| $ffmpeg_cmd = "ffmpeg -i - -acodec libvorbis -f ogg -"; | |
| // Set headers for ogg binary data | |
| header("Accept-Ranges: bytes"); | |
| header("Content-Type: application/ogg"); | |
| header("Content-Transfer-Encoding: binary"); |
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
| #!/bin/bash | |
| # loop through all of the shapefiles in the directory and act on them | |
| # http://trac.osgeo.org/gdal/wiki/FAQVector#HowcanImergehundredsofShapefiles | |
| # http://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash | |
| # !IMPORTANT: OGR 1.9 for direct to PostGIS support, linestring-multilinestring, and character encoding support. | |
| if [ $# -ne 1 ]; then | |
| echo "USAGE: ./import.sh <in_dir_path>" |
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
| getMidpoint: function(points, midpointDistance) { | |
| var tempDistance = midpointDistance; | |
| var midpointLatLng; | |
| // We go through each segment of the line | |
| for (var i = 0; i < points.length - 1; i++) { | |
| var segment = points.slice(i, i + 2); | |
| var length = google.maps.geometry.spherical.computeLength(segment); | |
| tempDistance = tempDistance - length; |
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
| (function(){ | |
| // the minimum version of jQuery we want | |
| // totally arbitrary version, swiped from Resizer | |
| var jQueryVersion = "1.7.1"; | |
| var jQueryUIVersion = "1.8.17"; | |
| /* This will be our global jQuery variable. We'll use it with | |
| noConflict() to make sure we don't step on any existing jQuery in | |
| a page. */ |