Skip to content

Instantly share code, notes, and snippets.

View jbotte's full-sized avatar

John Botte jbotte

View GitHub Profile
$params = array( 'limit' => -1, 'where' => 'study_related_topics.name LIKE "%'.$study_search.'%"');
<?php
$start = '2014-12-22';
$end = '2014-12-30';
$args = array(
'posts_per_page' => 5, 'post_type' => 'events',
$prefix = 'custom_';
$custom_meta_fields = array(
array(
'label' => 'Multi-Day',
'desc' => '',
'id' => $prefix.'multiday',
'type' => 'checkbox'
),
array(
'label' => 'Recurring',
@jbotte
jbotte / workingbodymovin.js
Created May 7, 2018 22:11
latest version of body moving was causing weird animation glitches, if i replace the npm bodymovin with just this file things are fine.
var window="undefined"==typeof window?{}:window;!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof module&&module.exports?module.exports=e():t.bodymovin=e()}(window,function(){function ProjectInterface(){return{}}function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function roundTo2Decimals(t){return Math.round(1e4*t)/1e4}function roundTo3Decimals(t){return Math.round(100*t)/100}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function styleUnselectableDiv(t){t.style.userSelect="none",t.style.MozUserSelect="none",t.style.webkitUserSelect="none",t.style.oUserSelect="none"}function BMEnterFrameEvent(t,e,s,r){this.type=t,this.currentTime=e,this.totalTime=s,this.direction=0>r?-1:1}function BMCompleteEv