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
| // Generated by CoffeeScript 1.6.1 | |
| jQuery(function($) { | |
| var changeList, copyItem, createList, deleteItem, deleteList, node, updateProductInfo, updateUserInfo; | |
| updateUserInfo = function() { | |
| console.log("updateUserInfo called"); | |
| return $.ajax({ | |
| url: '/index.cfm?page=wishlists:user_info&fmt=pjax', | |
| success: function(res) { | |
| return $('#user-info').replaceWith(res); |
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
| // Generated by CoffeeScript 1.6.1 | |
| jQuery(function($) { | |
| var addProductToWishList, addToWishList, button, collapse, container, createForm, createWishList, expand, icon, listsContainer, node, resizeWidget, toggleDropdown, updateWishlistLists; | |
| collapse = function() { | |
| console.log("Collapse it"); | |
| if ((typeof node !== "undefined" && node !== null) && (typeof container !== "undefined" && container !== null)) { | |
| node.removeClass('is-expanded').addClass('is-collapsed'); | |
| return container.animate({ | |
| 'height': 0 |
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
| jQuery ($) -> | |
| ###* | |
| DropdownMenu provides a simple button / reveal content model | |
| Generic enough to be reused provided there's a .button and .expandable child element | |
| @class DropdownMenu | |
| @requires jQuery 1.8+ | |
| ### | |
| class DropdownMenu | |
| ###* |
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
| # jQuery Widget Experiment | |
| $.widget 'build.ddmenu', | |
| ATTRS: | |
| NAME: 'ddmenu' | |
| STATE: 'COLLAPSED' | |
| CLASSES: | |
| EXPANDED: 'is-expanded' | |
| COLLAPSED: 'is-collapsed' | |
| _create: -> | |
| B.log 'Created', 'info', @ATTRS.NAME |
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
| <!--- combo.cfm --> | |
| <cfscript> | |
| comboContents = ""; | |
| response = getPageContext().getResponse(); | |
| for(asset in url) { | |
| assetFileName = ""; | |
| // Kinda hack-ish as the last in, wins, might be best just to default all to JS or group by type in requestutility.cfc | |
| if (find("scripts/", asset)) { | |
| response.setContentType('text/javascript'); | |
| } else if (find("css/", asset)) { |
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
| /** | |
| * GitHubber | |
| * | |
| * Author: scott.jungling@build.com | |
| * Date: 2013-03-14 | |
| */ | |
| def preferences() { | |
| [ | |
| sections: [ |
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
| /** | |
| * Desk Defense System | |
| * Don't steal my laptop, bro! | |
| * | |
| * Author: Team Kickass | |
| */ | |
| def preferences() { | |
| return [ | |
| sections: [ |
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
| #!/bin/sh | |
| # CONSTANT(S) | |
| BRANCH_PATTERN="^# On branch ([^${IFS}]*)" | |
| # Get status w/current branch | |
| git_status=$(git status 2> /dev/null) | |
| # Get current branch name | |
| if [[ ${git_status} =~ ${BRANCH_PATTERN} ]]; then | |
| branch_name=${BASH_REMATCH[1]} |
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
| RED="\[\033[1;31m\]" | |
| YELLOW="\[\033[1;33m\]" | |
| GREEN="\[\033[1;32m\]" | |
| BLUE="\[\033[1;34m\]" | |
| LIGHT_RED="\[\033[1;31m\]" | |
| LIGHT_GREEN="\[\033[1;32m\]" | |
| WHITE="\[\033[1;37m\]" | |
| LIGHT_GRAY="\[\033[1;37m\]" | |
| COLOR_NONE="\[\e[0m\]" |
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
| # Replace YOUR_ORG with your global namespace | |
| window.YOUR_ORG = | |
| debug: false | |
| log: (msg, type, context) -> | |
| message = undefined | |
| if window.console and @debug | |
| if typeof msg is "string" and context isnt undefined | |
| message = "(" + (new Date().getTime()) + ") " + context + ": " + msg | |
| else | |
| message = msg |