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
importPackage(com.terminalfour.publish.utils); | |
var UTILS = eval(String(com.terminalfour.publish.utils.BrokerUtils.processT4Tags(dbStatement, publishCache, section, null, language, isPreview, '<t4 type="media" id="410587" formatter="inline/*" />'))); | |
try { | |
var layout = "text/default"; | |
var isResponsive = UTILS.isResponsivePage(); | |
if (isResponsive === true) { | |
layout = "text/responsive"; | |
} |
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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
$c-btn: ( | |
default: blue, | |
primary: red | |
); |
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
# specify a global exclusion list | |
git config --global core.excludesfile ~/.gitignore | |
# adding .DS_Store to that list | |
echo .DS_Store >> ~/.gitignore |
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
thousandSeparator = function (numString) { | |
return numString.replace(/\B(?=(\d{3})+(?!\d))/g, ",") | |
} |
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
// Stop overscrolling | |
document.ontouchmove = function(event){ | |
event.preventDefault(); | |
} |
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
/** | |
* Makes chain of promises | |
* @param {function} toRun Function to apply to each item | |
* @param {array} processArray Array of items to process | |
* @return {promise} Final promise to pass on | |
*/ | |
chain: function(toRun, processArray) { | |
var defer = Q.defer(); | |
var args = Array.prototype.slice.call(arguments).slice(2); | |
processArray.reduce(function (previous, current) { |
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
$(function() { | |
// autofill(); | |
$('.autofill').click(function(e) { | |
e.preventDefault(); | |
autofill(); | |
}); | |
}); |
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
// Find out if number is between a and b | |
if (typeof(Number.prototype.isBetween) === "undefined") { | |
Number.prototype.isBetween = function(a, b) { | |
var max = Math.max(a,b), | |
min = Math.min(a,b); | |
return (this <= max) && (this >= min); | |
}; | |
} |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |