This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is an example of a script that would hook into the filter or | |
* subscribe to some sort of data. I want to make the assumption that | |
* this could be non-ES6 code with no access to the spread operator, so | |
* something like push would be used instead. | |
*/ | |
function rkvAddPython( codeList ) { | |
codeList.push( { | |
title: 'Python', | |
codemirror: 'python', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.btn > .caret, .gform_button > .caret, | |
.dropup > .btn > .caret, | |
.dropup > .gform_button > .caret { | |
border-top-color: #000 !important; | |
} | |
.gform_fields { | |
padding-left: 0; | |
list-style: none; | |
margin-left: -15px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var PostList = { | |
controller: function(args) { | |
this.edit = function(post) { | |
if(post.editing() === true) { | |
post.editing(false); | |
} else { | |
post.previousTitle = post.title(); | |
post.editing(true); | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin bp($point) { | |
$bp-babybear: "(max-width: 600px)"; | |
$bp-papabear: "(max-width: 950px)"; | |
@if $point == papa-bear { | |
@media #{$bp-papabear} { @content; } | |
} | |
@else if $point == baby-bear { | |
@media #{$bp-babybear} { @content; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class WPLazyLoadImages { | |
function __construct() { | |
// Add Our Filters and actions for the plugin | |
add_action('wp_enqueue_scripts', array($this, 'enqueue_lazyload')); | |
add_filter('the_content', array($this, 'filter_lazyload')); | |
add_action('wp_footer', array($this, 'footer_lazyload')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Start by creating a few image sizes for us to use | |
*/ | |
add_image_size('smallest', 479, 9999); | |
add_image_size('small', 768, 9999); | |
add_image_size('largest', 1800, 9999); | |
/* | |
* Enqueue our Picturefill Javascript |