This file contains 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
function createBoxes(){ | |
var html = ''; | |
var boxesToCreate = 50; | |
//create the container node | |
var container = document.createElement( 'div' ); | |
container.className = 'container'; | |
//create the boxes and add them to the container | |
for( var i = 0; i < boxesToCreate; i++ ){ |
This file contains 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 CD_Twitter{ | |
protected $_base_twitter_url = 'https://api.twitter.com/1/statuses/user_timeline.json?'; | |
protected $_default_options = array( | |
'include_entities' => true, | |
'include_rts' => true, | |
'screen_name' => 'carldanley', | |
'count' => 10 | |
); |
This file contains 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 myTour = tours.createTour( 'my-awesome-tour' ); | |
//feature the menu now | |
myTour.disableScrolling() | |
.createBackground( '#000', 0.00 ) | |
.fadeBackground( 0.4, 500 ) | |
.scrollTo( 'body', 1000 ) | |
.wait( 500 ) | |
.showCursor( ) | |
.trackProgress( true ) |
This file contains 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 DOM = new function(){ | |
var IS_READY = false; | |
var CALLBACKS = []; | |
var SELF = this; | |
SELF.ready = function( callback ){ | |
//check to see if we're already finished | |
if( IS_READY === true && typeof callback === 'function' ){ | |
callback(); | |
return; |
This file contains 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 WP_Stripe | |
* Author: Carl Danley | |
* | |
* This class handles processing any Stripe actions by letting the WP HTTP API do all of the heavy lifting. | |
* | |
*/ |
This file contains 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
// -------------------------------------------------------------------- | |
// WordPress JSHint Ignored | |
// -------------------------------------------------------------------- | |
wp-admin/js/farbtastic.js | |
wp-admin/js/iris.min.js | |
wp-includes/js/crop/* | |
wp-includes/js/imgareaselect/* | |
wp-includes/js/jcrop/* | |
wp-includes/js/jquery/* | |
wp-includes/js/mediaelement/* |
This file contains 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
// new modules object introduction | |
( function( window, undefined ) { | |
window.wp = window.wp || {}; | |
window.wp.modules = window.wp.modules || {}; | |
} )( window ); | |
// example Mediator module | |
wp.modules.Mediator = ( function( window, undefined ) { |
This file contains 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
( function() { | |
function highlightSchedule( tableIndex, scheduleValues ) { | |
var tables = document.querySelectorAll( 'table.schedule' ); | |
if( tableIndex >= tables.length ) { | |
return; | |
} | |
var table = tables[ tableIndex ]; | |
var rows = table.querySelectorAll( 'tr' ); | |
for( var i = 0, len = scheduleValues.length; i < len; i++ ) { |
This file contains 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
# adds all keys in the ~/.ssh folder | |
function add_ssh_keys { | |
for i in `find ~/.ssh -name '*.pub' | sed 's/.\{4\}$//'`; | |
do ssh-add $i; | |
done | |
} | |
SSH_ENV=$HOME/.ssh/environment | |
function start_agent { |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
ANSIBLE_PATH = '.' # path targeting Ansible directory (relative to Vagrantfile) | |
# Set Ansible roles_path relative to Ansible directory | |
ENV['ANSIBLE_ROLES_PATH'] = File.join(ANSIBLE_PATH, 'vendor', 'roles') |
OlderNewer