Skip to content

Instantly share code, notes, and snippets.

@jb510
jb510 / gist:9042626
Created February 17, 2014 00:23
css for chuck burke
@font-face {
font-family: 'playbill';
src: url("customfonts/playbill-webfont.eot");
src: url("customfonts/playbill-webfont.eot?#iefix") format('embedded-opentype'),
url("customfonts/playbill-webfont.woff") format('woff'),
url("customfonts/playbill-webfont.ttf") format('truetype'),
url("customfonts/playbill-webfont.svg#playbillregular") format('svg');*/
font-weight: normal;
font-style: normal;
{
"folders": [{
"follow_symlinks": true,
"path": ".",
}],
"settings": {
"xdebug": {
// Replace {site_name} throughout, your paths may vary depending on our config
"path_mapping": {
"/vagrant/www/{site_name}": "~/VVV/www/{site_name}",
@jb510
jb510 / gist:9999718
Created April 6, 2014 00:09
Don't Update Plugin WordPress API 1.1
/**
* Dont Update the Plugin
* If there is a plugin in the repo with the same name, this prevents WP from prompting an update.
*
* @since 1.0.0
* @author Jon Brown
* @param array $r Existing request arguments
* @param string $url Request URL
* @return array Amended request arguments
*/
@jb510
jb510 / gist:9999721
Created April 6, 2014 00:10
Don't Update Theme WordPress API 1.1
/**
* Don't Update Theme.
*
* If there is a theme in the repo with the same name, this prevents WP from prompting an update.
*
* @since 1.0.0
* @author Mark Jaquith
* @link http://markjaquith.wordpress.com/2009/12/14/excluding-your-plugin-or-theme-from-update-checks/
* @param array $r Existing request arguments
* @param string $url Request URL
@jb510
jb510 / gist:10014524
Created April 7, 2014 03:42
WordPress Shortcode Output Buffer
/**
* Sample Shortcode
* @since 1.0.0
*
* @param null
* @return string Site URL
*/
function jb_sample_shortcode( $atts ) {
ob_start(); ?>
<!-- hello world -->
@jb510
jb510 / gist:67f75dc532c70e790158
Last active August 29, 2015 14:01
Single Page Navigation of grandchildren skipping parents
<?php
function lm_do_video_navigation() {
// This runs on the grandchild. It finds the grandparent, then it's children, and loops through
// the children in order building an array of the grandchildren in menu_order.
// get top parent post ID
$top_parent_ID = get_page(array_pop(get_post_ancestors($post->ID)))->ID;
$args = array(
@media only screen and (max-width: 940px) {
div.optinWrapper.emailOptinWrapper8418.optinWrapper8418 {
height: auto !important; /* or better remove inline style */
}
div#hc_shortcode_form8418 {
height: auto !important; /* or better remove inline style */
max-width: 100% !important;
overflow: hidden;
}
@jb510
jb510 / 0_reuse_code.js
Created June 1, 2014 03:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jb510
jb510 / javascript_resources.md
Created June 1, 2014 03:41 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@jb510
jb510 / css_resources.md
Created June 1, 2014 03:41 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides