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
{"lastUpload":"2018-04-24T10:39:37.684Z","extensionVersion":"v2.9.0"} |
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 sprite($sprite) | |
$selector: #{&} | |
$hover: str-index($selector, 'hover') | |
$active: str-index($selector, 'active') | |
@if not ($active or $hover) | |
+spriteImage($sprite) | |
+spritePosition($sprite) | |
+spriteWidth($sprite) |
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
'.source.coffee': | |
'Core Backbone App': | |
'prefix': 'bb_module' | |
'body': ''' | |
define [ | |
'jquery' | |
'lodash' | |
'backbone' | |
'handlebars' |
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
// js node | |
(function($node) { | |
if ($node.length) { | |
$node.el = $('.node--el', $node.el); | |
$node.el.show(); | |
} | |
})( $('.node') ); |
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
// Self invoking object | |
({ | |
default: "Default", | |
init: function(name) { | |
var name = name ? name : this.default | |
console.log( "Hi, " + name ); | |
} | |
}).init('Alex') | |
// self invoking function |
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
# generate iconfont from svgs | |
gulp.task 'common:iconfont', -> | |
gulp.src config.paths.src.common.svg.icons.all | |
.pipe g.iconfont | |
fontName: "icons" | |
appendCodepoints: true | |
normalize: true | |
.on 'codepoints', (codepoints) => | |
codepoints.forEach (glyph, idx, arr) -> | |
arr[idx].codepoint = glyph.codepoint.toString(16) |
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
rem() | |
values = () | |
for i in arguments | |
push(values, i/16 rem) | |
return values | |
// e.g. padding rem(94px 0 75px) |
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
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, | |
fieldset, form, label, legend, | |
table, caption, tbody, tfoot, thead, tr, th, td, | |
article, aside, canvas, details, embed, |
NewerOlder