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
<div class="pagination-centered"> | |
<ul class="pagination"> | |
{% if paginator.previous_page %} | |
{% if paginator.previous_page == 1 %} | |
<li class="arrow"><a href="/" class="arrow">«</a></a> | |
{% else %} | |
<li class="arrow"><a href="/blog/page/{{ paginator.previous_page }}" class="arrow">«</a></li> | |
{% endif %} | |
{% else %} | |
<li class="arrow unavailable"><a href="#">«</a></li> |
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
{ | |
"_id" : "1361639151", | |
"_rev" : "1-44fc5784a1232a8105674a8dc9bcf629", | |
"analysis" : { | |
"heading" : 111.6373011593165, | |
"distance" : 173.6348318055695, | |
"midpoint" : { | |
"longitude" : -78.26637652371045, | |
"latitude" : 37.05637464459874 | |
} |
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
## | |
## Wordpress Redirects: | |
## | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [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
<?php | |
/////////////////////////////////// | |
// Local and Production Settings // | |
/////////////////////////////////// | |
if ( strpos( $_SERVER['SERVER_NAME'], ".dev" ) ) { | |
///////////////////////////// | |
// Development / Localhost // | |
///////////////////////////// | |
define('DB_NAME', ''); |
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
{ | |
"_id" : "1363975475", | |
"_rev" : "1-b4dab98ce01f55526c19733988982552", | |
"analysis" : { | |
"points" : { | |
"burst" : { | |
"index" : 57, | |
"latitude" : 37.43120734417338, | |
"longitude" : -78.55404367043889, | |
"altitude" : 32747.3439370399 |
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
/** | |
* | |
* fnstraj | Simple CouchDB Wrapper | |
* Copyright 2011-2013 Kyle Hotchkiss | |
* Released under the GPL | |
* | |
* Needs checkup (HEAD) check to verify that we're good to | |
* continue forward with Daemon execution. | |
* | |
*/ |
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 | |
/** | |
* | |
* fnstraj frontend | database wrapper | |
* Copyright 2011-2013 Kyle Hotchkiss | |
* Released under the GPL | |
* | |
* Aiming for API compatibility with fnstraj | |
* located at > fnstraj/library/database.js < | |
* |
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
jQuery.getJSON("http://maps.googleapis.com/maps/api/geocode/json?address=" + latitude + ',' + longitude + "&sensor=true", function( data ) { | |
var components = data.results[0].address_components; | |
for ( level in components ) { | |
if (components[level].types[0] === "locality" || components[level].types[0] === "administrative_area_level_2" || components[level].types[0] === "administrative_area_level_1" ) { | |
locale = components[level].short_name; | |
break; | |
} | |
} |
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
/** | |
* | |
* FNSTraj | Worker Process | |
* Copyright 2011-2012 Hotchkissmade | |
* Released under the GPL | |
* | |
*/ | |
var http = require("http"); | |
var fnstraj = require("./predictors/fnstraj.js"); |
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>Coordinate Midpoint Calculator</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> | |
<script> | |
var RADIANS = Math.PI / 180; | |
var DEGREES = 180 / Math.PI; |