I hereby claim:
- I am codyogden on github.
- I am codyogden (https://keybase.io/codyogden) on keybase.
- I have a public key ASBe05VfUzPnzE2gQV2rT08JtPGW8JCGr1dl9ODvsHwsBQo
To claim this, I am signing this object:
SELECT *, ( 3959 * acos( cos( radians( :oldlat ) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians( :oldlng ) ) + sin( radians(:oldlat) ) * sin( radians( latitude ) ) ) ) AS distance FROM agency HAVING distance < :dist ORDER BY distance LIMIT :numb | |
/* jQuery plugin that tells if the element is in the viewport */ | |
$.fn.inVP = function(){ | |
var element = this.get(0); | |
var bounds = element.getBoundingClientRect(); | |
return bounds.top < window.innerHeight && bounds.bottom > 0; | |
} |
// Show two decimal places, returns a string | |
VARIABLE.toFixed(2); | |
// Show as USD Currency | |
VARIABLE.toLocaleString( 'USD', { style: 'currency', currency: 'USD' } ); | |
// Show as USD Currency with commas | |
VARIABLE.toLocaleString( 'en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 } ); | |
// Hi matt! |
function ready(fn) { | |
if (document.readyState != 'loading'){ | |
fn(); | |
} else { | |
document.addEventListener('DOMContentLoaded', fn); | |
} | |
} |
var countItemInObject = function ( arr, item, search ) { | |
return arr.filter(function( obj ){ | |
return obj[item] === search; | |
}).length; | |
}; |
// When the hamburger is clicked | |
$("MENUICON").on("click", function() { | |
// Add the show class to the menu | |
$("DRAWER").addClass("show"); | |
// Add one event listener | |
$("DRAWER").one("mouseleave", function() { | |
// When the mouse leaves |
{ | |
action: "start" | |
} | |
// Send back a true/false that a number is generated and the server is ready to play. | |
// What Client sends to server | |
{ | |
action: "guess", |
I hereby claim:
To claim this, I am signing this object:
This walkthrough assumes you have previously setup a public SSH key on your Digital Ocean account. If you have not setup an SSH key. Replace Step 3 with the alternative directions underneath the main tutorial.
<?php | |
// Register Editor Stylesheet | |
function text_domain_add_editor_styles() { | |
// Easily add a Google Font to the Editor | |
$font_url = str_replace( ',', '%2C', '//fonts.googleapis.com/css?family=Indie+Flower' ); | |
add_editor_style( $font_url ); | |
add_editor_style('editor-styles.css'); | |
} | |
add_action('admin_init', 'text_domain_add_editor_styles'); |