Skip to content

Instantly share code, notes, and snippets.

View bradbergeron-us's full-sized avatar

Brad Bergeron bradbergeron-us

View GitHub Profile
@bradbergeron-us
bradbergeron-us / Make_Bin_Executable
Created April 21, 2015 20:31
Makes The entire bin directory executable with a single script
#!/bin/sh
chmod ug+x ~/bin/*
chmod ug+x ~/dotfiles/bin/*
chmod ug+x ~/dotfiles/bin/osx/*
chmod ug+x ~/dotfiles_local/bin/*
chmod ug+x ~/dotfiles_local/bin/osx/*
@bradbergeron-us
bradbergeron-us / osx.sh
Created April 21, 2015 05:58
Script for Automating ideal osx Settings
# Main
# ====
# Show battery life percentage.
defaults write com.apple.menuextra.battery ShowPercent -string "YES"
# Save screenshots to the downlaods.
defaults write com.apple.screencapture location "$HOME/Downloads/"

The below configuration will pause the tour after tooltip 2 has appeared (index of 1). In the postStepCallback we check to see if the tour has been paused and fire some code.

<script>
  $(window).load(function() {
    $('#joyRideTipContent').joyride({
      pauseAfter : [1],
      postStepCallback : function (index, tip) {
        if ($(this).joyride('paused')) {
 console.log('Hey there, you\'ve paused the tour.');
/*!
* jQuery TextChange Plugin
* http://www.zurb.com/playground/jquery-text-change-custom-event
*
* Copyright 2010, ZURB
* Released under the MIT License
*/
(function ($) {
$.event.special.textchange = {

2D and 3D Block Loaders

A selection of loaders all based around a line of 6 blocks.

Uses CSS3 animation and transforms to create a variety of subtle loading effects.

Inspired by the loading animation on the PSN mobile site (which uses the Flip Delay Up example for their loader).

For more info, see: http://ashleynolan.co.uk/blog/a-collection-of-animated-loaders