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
| Handlebars.getTemplate = function(name, partialDependencies) { | |
| if(typeof partialDependencies !== 'undefined') { | |
| for (var i = partialDependencies.length - 1; i >= 0; i--) { | |
| var partialName = partialDependencies[i]; | |
| if (Handlebars.partials === undefined || Handlebars.partials[partialName] === undefined) { | |
| $.ajax({ | |
| url : '/assets/templates/partials/' + partialName + '.handlebars', | |
| success : function(data) { | |
| Handlebars.registerPartial(partialName, data); |
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
| javascript:(function() { | |
| var bookmarklet = { | |
| init: function() { | |
| this.parse(); | |
| }, | |
| parse: function() { | |
| page = ""; | |
| $.each($(".SourceList:visible").find(".Track"), function() { | |
| line = []; | |
| function buildLine() { |
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
| javascript:(function() { | |
| var bookmarklet = { | |
| init: function() { | |
| this.parse(); | |
| }, | |
| parse: function() { | |
| page = ""; | |
| $(".Collection:visible") | |
| .children(".ListItem") | |
| .find(".Track") |
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
| NAMESPACE.Start = function() { | |
| $.each(NAMESPACE, function(obj,v) { | |
| if(obj !== 'Start') | |
| $.each(NAMESPACE[obj], function(func, v) { | |
| if(typeof NAMESPACE[obj][func] !== 'undefined' && | |
| func !== 'init' && func.indexOf('_') !== 0 && | |
| typeof NAMESPACE[obj][func] === 'function') NAMESPACE[obj][func](); | |
| }); | |
| }); | |
| }; |
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
| git update-index --assume-unchanged file.extension |
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
| #!/usr/bin/python | |
| # This script is designed to take a wordpress xml export file and split it into some | |
| # number of chunks (2 by default). The number of lines per chunk is determined by counting | |
| # the number of occurences of a particular line, '<item>\n' by default, and breaking up the | |
| # such that each chunk has an equal number occurences of that line. The appropriate header | |
| # and footer is added to each chunk. | |
| import os | |
| import sys |