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
// external dependencies | |
const bPromise = require('bluebird'); | |
// logic | |
exports.up = function(db, types) { | |
return db.sequelize.transaction(bPromise.coroutine(function* (t) { | |
yield db.createTable('listings', { | |
id: { |
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
clusters: | |
- name: tbxaccounts | |
cluster: | |
server: https://some.auth.service/webhook-authn?cluster=kube-prod | |
users: | |
- name: apiserver | |
current-context: webhook | |
contexts: |
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') |
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
( 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
// 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
// -------------------------------------------------------------------- | |
// 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
<?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
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
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 ) |
NewerOlder