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
[ | |
{ | |
"name": "demos", | |
"data": { | |
"someKey": { | |
"onlySource": { | |
"andComponent": { | |
"know": "demos component content from outside works! And we can use ng bindings here. Component name: {{ $ctrl.name }}. Dynamic content: {{ $ctrl.remoteConfigurationDemoInputValue }}" | |
} | |
} |
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
{ | |
"name": "stats", | |
"version": "0.0.1" | |
} |
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
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
$color-rebeccapurple: rebeccapurple; | |
$color-red: red; | |
$color-blue: blue; | |
@mixin color( |
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
$($window).on('scroll', function () { | |
scope.$apply(function () { | |
if ($window.pageYOffset > offsetTop) { | |
elem.css('left', offsetLeft + 'px'); | |
elem.css('width', width + 'px') | |
// position: fixed; top: 100px; | |
elem.addClass('sticky'); | |
} else { | |
elem.removeClass('sticky'); |
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
/** | |
* @param {...(string|Array)} paths | |
* | |
* @example | |
* > mergePaths('a.b.c', 'd'); | |
* // ['a', 'b', 'c', 'd'] | |
* | |
* > mergePaths('a.b.c', ['d']); | |
* // ['a', 'b', 'c', 'd'] | |
* |
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
{ | |
"plugins": [ | |
"spellcheck" | |
], | |
"rules": | |
// Spellcheck | |
// | |
"spellcheck/spell-checker": ["warn", { | |
"skipWords": [ | |
// own names |
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
let $log, | |
let $q; | |
// currently: | |
beforeEach(inject(function (_$log_, _$q_) { | |
$log = _$log_; | |
$q = _$q_; | |
})); | |
// maybe: |
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'; | |
angular | |
.module('finally', []) | |
.directive('finally', function ( | |
$parse | |
) { | |
return { |
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'; | |
angular | |
.module('q.race', []) | |
.config(function ($provide) { | |
$provide.decorator('$q', function ($delegate) { | |
$delegate.race = promises => $delegate((resolve, reject) => { | |
const bind = promise => { |
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
'use strict'; | |
module.exports = function (grunt) { | |
grunt.initConfig({ | |
fontello: { | |
share: { | |
options: { | |
config: 'fontello-config.json', | |
fonts: 'app/fonts', | |
styles: 'app/core-styles', |
NewerOlder