Skip to content

Instantly share code, notes, and snippets.

View jeffrey-hearn's full-sized avatar

Wren Hearn jeffrey-hearn

  • Auriemma Roundtables
  • Silver Spring, MD
View GitHub Profile
function calculate_the_city(answers, finalCity) {
$.getJSON("calculate_city.php", {
rc: finalCity,
answers: answers
})
.done(function( data ) {
// console.log(data);
// LOL?
});
@jeffrey-hearn
jeffrey-hearn / functions.php
Last active December 14, 2015 07:58
Incomplete example of how one would cache the default WordPress query so that the database is never hit.
<?php
add_filter( 'posts_request', 'pre_db_hit' );
function pre_db_hit( $request )
{
global $diy_cache_current_request;
$diy_cache_current_request = $request;
// use request string to see if expired...
@jeffrey-hearn
jeffrey-hearn / hallo-mirrorstage.coffee
Created June 9, 2014 16:14
Extending hallo.js using Wagtail hooks
((jQuery) ->
jQuery.widget "IKS.mirrorstageeditor",
boldElement: null
options:
uuid: ''
editable: null
_create: ->
@jeffrey-hearn
jeffrey-hearn / the-mandalorian-for-ukulele.txt
Created November 25, 2019 01:59
The Mandalorian by Ludwig Göransson, Fingerpicking Style for Ukulele
The Mandalorian
by Ludwig Göransson
Section Arrangement:
Chorus
Intro
Verse