$ brew install ffmpeg
$ brew install gifsicle
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
#!/bin/bash | |
GIT_ROOT='/Users/{username}/Sites/my-git-repo/' | |
cd $GIT_ROOT | |
LAST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) | |
echo $LAST_TAG |
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
# http://stackoverflow.com/a/28818420/484780 | |
git describe --abbrev=0 --tags `git rev-list --tags --skip=1 --max-count=1` |
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
/* | |
Convert numbers to words | |
copyright 25th July 2006, by Stephen Chapman http://javascript.about.com | |
permission to use this Javascript on your web page is granted | |
provided that all of the code (including this copyright notice) is | |
used exactly as shown (you can change the numbering system if you wish) | |
*/ | |
var numberToWords = function(s){ | |
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 | |
/* | |
Database Class | |
this class should be extended (see DBCore.php) to be made | |
into a singleton class | |
@author Kevin Jantzer, Blackstone Audio Inc. | |
@since 2012-04-20 | |
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
/* | |
FilterView | |
@author Kevin Jantzer, Blackstone Audio Inc. | |
@since 2012-11-06 | |
Filter by Presets and user typed Terms. If filtered by a preset, | |
search term will filter within the preset filtered collection | |
USE: |
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
/* | |
Infinite List View | |
creates <ul> with triggers for infinite scrolling | |
@author Kevin Jantzer, Blacktone Audio Inc. | |
@since 2012-11-06 | |
USE - listen for: |
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
/* | |
Lightweight PUBLISH / SUBSCRIBE Class | |
Original code from: <http://blog.bobcravens.com/2011/01/loosely-coupled-javascript-using-pubsub/> | |
Can be initialized on other Objects to provide pub/sub functionality within that object | |
ex: this.events = new PubSub(); | |
*/ |
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
add_action('get_header', 'remove_admin_login_header'); | |
function remove_admin_login_header() { | |
remove_action('wp_head', '_admin_bar_bump_cb'); | |
} |
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
/* | |
Plural - create singlular or plural sentence based on number given (all numbers but 1 return plural sentence) | |
var str = "Do you want to delete this? There {are|is} [num] book{s} attached." | |
var num = 2 // or 0, 3, 4, ... | |
"Do you want to delete this? There are 2 books attached." | |
var num = 1 | |
"Do you want to delete this? There is 1 book attached." |
NewerOlder