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
# | |
# fpath | |
# | |
# As per `brew info zsh-completions` | |
fpath=(/usr/local/share/zsh-completions $fpath) | |
# | |
# zsh shortcuts | |
# |
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
#ZSH_THEME="agnoster" | |
ZSH_THEME="arrow" | |
. `brew --prefix`/etc/profile.d/z.sh | |
plugins=( | |
git | |
caniuse | |
atom_plugin |
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
function setupControls(video, container) { | |
// console.log('setting up ctrls'); | |
video.removeAttribute('controls'); | |
var $plause = $(container).find('.plause'); | |
var $progress = $(container).find('.progress'); | |
var $played = $(container).find('.progress .played'); | |
var $loaded = $(container).find('.progress .loaded'); | |
var $current = $(container).find('.time .current'); |
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 | |
/* -------------------------------- | |
Enable/Disable WP stuff | |
------------------------------*/ | |
// remove junk from head | |
remove_action('wp_head', 'rsd_link'); | |
remove_action('wp_head', 'wp_generator'); | |
remove_action('wp_head', 'feed_links', 2); | |
remove_action('wp_head', 'index_rel_link'); |
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
/* | |
* jQuery 3-state Sticky element | |
* Description: sticks a DOM element to the top of viewport, unsticks when | |
* footer/header push it up/down | |
* author: wes hatch | |
* | |
*/ | |
(function($, window, undefined){ |
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
/* | |
* jQuery Image Popup | |
* Description: small, simple, lightweight image displayer. | |
* | |
*/ | |
(function( $ ){ | |
$.fn.popup = function(o) { | |
o = $.extend({ |
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
/* | |
* Wordpress Scrubber Gallery | |
* Description: modifies the default WP gallery with an "image stack" | |
* that you can hover over and scrub through to view | |
*/ | |
(function($){ | |
$.fn.scrubbable = function () { |
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
(function( wes, $, undefined ) { | |
// ------------ private ------------ | |
function privateFn() { | |
} | |
// ------------ public ------------ | |
wes.publicFn = function() { |
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
/* | |
* Add a column to the Users table, with a radio button | |
* The radio button updates a usermeta field via ajax | |
*/ | |
add_filter( 'manage_users_columns', 'add_display_column'); | |
function add_display_column( $columns){ | |
$columns['display_as'] = 'Display as'; | |
return $columns; | |
} |
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
/* | |
* imageBook and Gallery | |
* two simple, similar plugins which scroll through a set of images | |
*/ | |
// ------------- | |
// sample css | |
// ------------- | |
/* imageBook */ | |
#imageBook { height:360px; } |
NewerOlder