π£
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
| .truncate { | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| .untruncate { | |
| overflow: visible; | |
| text-overflow: initial; | |
| white-space: pre; |
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
| $(':not(iframe)').contents().each(function() { | |
| 8 == this.nodeType && $(this).remove() | |
| }) |
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
| @mixin border($side: null) { | |
| #{if($side, border-#{$side}, border)}: 2px solid; | |
| } |
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
| $('[data-compute]').each(function() { | |
| $(this).text($(this.dataset.computeFrom).css(this.dataset.compute)); | |
| }); |
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
| @mixin backdrop($background: rgba(black, .5)) { | |
| @include mask(fixed); | |
| z-index: -1; | |
| background: #{$background}; | |
| } |
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
| /** | |
| * @ngdoc directive | |
| * @restrict A | |
| * @description Clone descendent click. Clicking [rad-clone-click] triggers click on associated selector. | |
| * @element ANY | |
| * @example | |
| * <ANY clone-click=".is-clone-click:not(:disabled):not(.is-disabled)"> | |
| * <a class="is-clone-click" ui-sref="root.example">example</a> | |
| * </ANY> | |
| */ |
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 readJsonSync(file) { | |
| return JSON.parse(require('fs').readFileSync(file, 'utf8')) | |
| } |
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
| var child_process = require('child_process') | |
| function run(command) { | |
| return child_process.execSync(command) | |
| } | |
| function capture(command) { | |
| return String(run(command)).trim() | |
| } |
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
| module.exports = function argValue(key) { | |
| function value(arg) { | |
| return null == arg ? arg : 0 === arg.indexOf(key + '=') ? arg.slice(key.length + 1) : arg === key | |
| } | |
| return value(this[this.findIndex(value)]) | |
| } |