Hammer.js
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
// custom Sortable widget - gets before and after index of moved item | |
// https://gist.github.com/3750782 | |
$.widget("ui.sortableWithIndexWatch", $.extend({}, $.ui.sortable.prototype, { | |
_trigger: function() { | |
switch(arguments[0]){ | |
case 'start': | |
this.currentItem.indexStart = this.currentItem.index(); |
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
/* | |
_.move - takes array and moves item at index and moves to another index; great for use with jQuery.sortable() | |
*/ | |
_.mixin({ | |
move: function (array, fromIndex, toIndex) { | |
array.splice(toIndex, 0, array.splice(fromIndex, 1)[0] ); | |
return array; | |
} | |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# Base is the URL path of the home directory | |
RewriteBase / | |
RewriteRule ^$ wordpress/index.php [L] | |
# Skip real files and directories | |
RewriteCond %{REQUEST_FILENAME} !-f |
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
/* | |
Catch-all Static methods when they are not explicitly defined | |
if the method name is prefixed with "slim_", we will instansiate the called class | |
and attempt to call the method name with the prefix stripped off | |
ex: "slim_transcode_task" becomes "transcode_task" | |
it is designed to be used with the SLIM api | |
ex: $app->get('/book/:book_id/baker/trascode', 'Baker::slim_transcode_task'); | |
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 SortableCollection = Backbone.Collection.extend({ | |
//key: 'LocalStorageKey', // define a key for saving sort info to local storage | |
//defaultSort: 'some_key', // the default key to sort by | |
defaultDesc: false, | |
localStoreKey: function(extra){ | |
return 'list:'+this.key+(extra?':'+extra:''); |
OlderNewer