View counter.css
.counter__reset {
counter-reset: module;
}
.counter__increment {
counter-increment: module;
}
.counter__before::before,
.counter__after::after {
View directive.js
!function(root, name, make) {
(root.angular || require('angular')).module(name, []).directive(name, make = make())
typeof module != 'undefined' && module.exports ? module.exports = make : root[name] = make
}(this, 'myDirective', function() {
return function() {
var angular = window.angular || require('angular')
return {
link: function (scope, element, atts) {
}
View webpack.config.js
module.exports = {
entry: './index.js',
output: {
filename: 'bundle.js'
},
externals: {
dns: '{}'
}
}
View equalize-height.scss
@mixin equalize-height($padding-bottom: 0) {
// match heights but retain padding
padding-bottom: 99rem;
margin-bottom: $padding-bottom - 99rem;
}
View vertical-align.css
.vertical-align {
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
position: absolute;
top: 50%;
}
View mask.scss
@mixin mask($position) {
position: $position;
top: 0;
left: 0;
right: 0;
bottom: 0;
content: '';
}
View border-join.scss
@mixin border-join($side) {
border-#{$side}: 0;
border-top-#{$side}-radius: 0;
border-bottom-#{$side}-radius: 0;
}
View border-radius.scss
@mixin border-radius($corner: null) {
#{if($corner, border-#{$corner}-radius, border-radius)}: $border-radius;
}
View occur.js
/**
* @param {Function} f
* @param {number} times
* @return {Function}
* If positive, limited to run only <var>times</var> times.
* If negative, prevented being run until called -<var>times</var> times
*/
function occur(f, times) {
if (times === 1/0) return f
times = ~~times
View args.js
var args = require('process').argv.slice(2)
console.log(args)