Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeffrey Hearn jeffrey-hearn

View GitHub Profile
@jeffrey-hearn
jeffrey-hearn / the-mandalorian-for-ukulele.txt
Created Nov 25, 2019
The Mandalorian by Ludwig Göransson, Fingerpicking Style for Ukulele
View the-mandalorian-for-ukulele.txt
The Mandalorian
by Ludwig Göransson
Section Arrangement:
Chorus
Intro
Verse
View blink_sos.v
@jeffrey-hearn
jeffrey-hearn / hallo-mirrorstage.coffee
Created Jun 9, 2014
Extending hallo.js using Wagtail hooks
View hallo-mirrorstage.coffee
((jQuery) ->
jQuery.widget "IKS.mirrorstageeditor",
boldElement: null
options:
uuid: ''
editable: null
_create: ->
View gist:9219603
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 Dec 14, 2015
Incomplete example of how one would cache the default WordPress query so that the database is never hit.
View functions.php
<?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...