⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
@mixin arrow_helper($arrowSize, $arrowColor, $margin, $side, $align) { | |
@if $side == "top" { | |
border-bottom-color: $arrowColor; | |
top: -2 * $arrowSize; | |
} | |
@if $side == "bottom" { | |
border-top-color: $arrowColor; | |
bottom: -2 * $arrowSize; | |
} | |
@if $side == "left" { |
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
/** | |
* Description: | |
* simple title case => Simple Title Case | |
* Usage: | |
* {{some_text | titleCase}} | |
*/ | |
app.filter('titleCase', function () { | |
return function (input) { | |
var words = input.split(' '); |
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() { | |
'use strict'; | |
// deps... jquery | |
var $fade_this_in = $('.something-with-opacity-0'); | |
function laneAddClassDelay(jquerobj, theclass, theinterval) { | |
setTimeout(function() { | |
jquerobj.addClass(theclass); | |
}, theinterval); | |
} |
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
/** | |
* Description: | |
* removes white space from text. useful for html values that cannot have spaces | |
* Usage: | |
* {{some_text | nospace}} | |
*/ | |
app.filter('nospace', function () { | |
return function (value) { | |
return (!value) ? '' : value.replace(/ /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
/** | |
* Description: | |
* puts   between last two words to prevent single word danglies | |
* Usage: | |
* {{some_text | nowidows:3}} | |
* Options: | |
* - minWords (int) - optional (default is 3) word-count to apply this filter | |
* Notes: | |
* \u00A0 is used to create   to get around angular sanitizing | |
* see: http://stackoverflow.com/a/12431145/337192 |
NewerOlder