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
| ## Requires _gaq | |
| ## TRACKING DOM ELEMENT CLICK EVENTS ## | |
| ##-----------------------------------------## | |
| ## To be tracked, a dom element must have a few data- attributes | |
| ## data-trackable !Required for element to be tracked - set it to "true" or something, doesn't matter, just needs to exist | |
| ## data-event-category !Required - String | |
| ## data-event-action !Required - String |
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
| # Requires jQuery | |
| class @PopupWindow | |
| attributes = | |
| title : "Popup Window Title" | |
| windowHeight : 600 | |
| windowWidth : 600 | |
| openOnCreate : true |
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
| String.prototype.isBalanced = -> | |
| parens = this.match( /[()]/g ) | |
| return false unless parens? | |
| openStarted = false | |
| closureBalance = 0 | |
| for i in [0...parens.length] by 1 | |
| char = parens[i] | |
| if openStarted | |
| if char == "(" then closureBalance++ else closureBalance-- | |
| else |
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
| $ -> | |
| # Binds to all inputs with a 'maxlength' attribute | |
| # Enforces the limit and will update & hide/show an element to the user to tell them how close they are the to the limit | |
| # the maxlength attribute is valid in HTML5 but not supported in all browsers | |
| # Eg. <span id="my-display" class="char-count-display"></span> <input type="text" maxlength="20" data-count-display="my-display" /> | |
| ignore = [8,9,13,33,34,35,36,37,38,39,40,46] | |
| eventName = 'keyup' |
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
Show hidden characters
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
| "font_face": "Fira Mono OT", | |
| "font_size": 14.0, | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "line_padding_bottom": 2, | |
| "line_padding_top": 2, |
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
| <?php | |
| $url = "https://subs.myplay.com/app/ly/signup"; | |
| $fields = array( | |
| 'email' => urlencode('[email protected]'), | |
| 'country' => urlencode('US'), | |
| 'list' => urlencode('ln_musicbox_newsletter'), | |
| 'lists_on_form' => urlencode('ln_musicvox_newsletter'), | |
| 'confirm' => urlencode('Y'), |
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
| function randomFromInterval(from,to) | |
| { | |
| return Math.floor(Math.random()*(to-from+1)+from); | |
| } | |
| function cursorTrail(e){ | |
| var i = randomFromInterval(1, 3), | |
| fadeOutTime = randomFromInterval(100, 200), | |
| top = e.pageY - randomFromInterval(15, 20), | |
| left = e.pageX- randomFromInterval(15, 20), |
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
| $color1: #FFF; | |
| $color2: #F00; // Red | |
| .candy-stripe { | |
| color: $color1; | |
| text-shadow: | |
| 1px 1px 1px $color2, | |
| 2px 2px 1px $color1, | |
| 3px 3px 1px $color2, | |
| 4px 4px 1px $color1; |
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
| .fuzz-text { | |
| color: #333; | |
| color: rgba(0, 0, 0, 0.6); | |
| text-shadow: 0 0 1px #797979; | |
| } |
OlderNewer