I hereby claim:
- I am joshdavenport on github.
- I am joshdavenport (https://keybase.io/joshdavenport) on keybase.
- I have a public key whose fingerprint is 2D49 23A5 62CA 7C03 53CF 943F 3A9E 02A6 CED7 1D27
To claim this, I am signing this object:
// $('img.photo',this).imagesLoaded(myFunction) | |
// execute a callback when all images have loaded. | |
// needed because .load() doesn't work on cached images | |
// mit license. paul irish. 2010. | |
// webkit fix from Oren Solomianik. thx! | |
// callback function is passed the last image to load | |
// as an argument, and the collection as `this` |
function reloadWithQueryStringVars (queryStringVars) { | |
var existingQueryVars = location.search ? location.search.substring(1).split("&") : [], | |
currentUrl = location.search ? location.href.replace(location.search,"") : location.href, | |
newQueryVars = {}, | |
newUrl = currentUrl + "?"; | |
if(existingQueryVars.length > 0) { | |
for (var i = 0; i < existingQueryVars.length; i++) { | |
var pair = existingQueryVars[i].split("="); | |
newQueryVars[pair[0]] = pair[1]; | |
} |
<?php | |
/** | |
* Remove wysiwyg for pages that have theme managed templates | |
*/ | |
add_action('admin_init', 'fafpp_remove_editor_init'); | |
function fafpp_remove_editor_init() { | |
if(isset($_GET['post'])) { | |
$post_id = $_GET['post']; |
{% comment %} | |
Show all sizes for a product in liquid | |
{% endcomment %} | |
{% for option in product.options %} | |
{% assign option_handle = option | handle %} | |
{% assign option_index = forloop.index0 %} | |
{% if option_handle == 'size' %} | |
{% assign values = '' %} | |
<ul class="{{ option_handle }}-options"> | |
{% for variant in product.variants %} |
(function() { | |
/** | |
* Super simple to use, inspect the field (input, select, whatever) with developer tools and run this code from a | |
* bookmarklet, pasted into console or even as a snippet. You'll be prompted with the field where you can copy it | |
* for whatever you may need it for :) | |
*/ | |
function getMageConfigPathFromInput(inputElement) { | |
var splitFieldName = inputElement.attributes['name'].value.replace('groups','').replace(/\[/g,'').split(']'); | |
return /section\/(.*?)\//g.exec(window.location.href)[1] + '/' + splitFieldName[0] + '/' + splitFieldName[2]; | |
} |
I hereby claim:
To claim this, I am signing this object:
// Name: Open Notion URL in Notion App | |
import "@johnlindquist/kit" | |
const url = await arg('What is the Notion URL?'); | |
if (!url.includes('notion.so')) { | |
throw new Error('Not a Notion URL'); | |
} |
// Name: NTS Live | |
// Description: Stream NTS Live Channel 1 or 2 | |
// Author: Vogelino, extended by Josh Davenport-Smith | |
// Twitter: @soyvogelino | |
// Shortcut: | |
import "@johnlindquist/kit"; | |
const PLAYER_HEIGHT = 76; | |
const PLAYER_WIDTH = 205; |
// Name: NTS Live | |
// Description: Stream NTS Live Channel 1 or 2 | |
// Author: Vogelino, extended by Josh Davenport-Smith | |
// Twitter: @soyvogelino, @jdprts | |
import "@johnlindquist/kit"; | |
const PLAYER_HEIGHT = 76; | |
const PLAYER_WIDTH = 205; |