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
| $rootScope.$on('$stateChangeStart',function(event, toState, toParams, fromState, fromParams){ | |
| console.log('$stateChangeStart to '+toState.to+'- fired when the transition begins. toState,toParams : \n',toState, toParams); | |
| }); | |
| $rootScope.$on('$stateChangeError',function(event, toState, toParams, fromState, fromParams){ | |
| console.log('$stateChangeError - fired when an error occurs during transition.'); | |
| console.log(arguments); | |
| }); | |
| $rootScope.$on('$stateChangeSuccess',function(event, toState, toParams, fromState, fromParams){ | |
| console.log('$stateChangeSuccess to '+toState.name+'- fired once the state transition is complete.'); | |
| }); |
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
| cd Packages/ | |
| git clone https://github.com/wbond/sublime_package_control.git "Package Control" | |
| cd "Package Control" | |
| git checkout python3 |
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
| http://andreev-artem.github.io/angular_experiments/index.html | |
| ng-if | |
| tb-tooltip - require jQuery, Bootstrap Tooltips component | |
| ui-alerts | |
| ui-checkbox |
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
| angular.module("ExperimentsModule", []) | |
| .directive("tbTooltip", function(){ | |
| return function(scope, element, iAttrs) { | |
| iAttrs.$observe('title', function(value) { | |
| element.removeData('tooltip'); | |
| element.tooltip(); | |
| }); | |
| } | |
| }); | |
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
| .directive('uiSource', function () { | |
| return { | |
| restrict: 'EA', | |
| compile: function (elem) { | |
| var escape = function(content) { | |
| return content | |
| .replace(/\&/g, '&') | |
| .replace(/\</g, '<') | |
| .replace(/\>/g, '>') | |
| .replace(/"/g, '"'); |
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
| filter('orderObjectBy', function () { | |
| return function (items, field, reverse) { | |
| var filtered = []; | |
| angular.forEach(items, function (item) { | |
| filtered.push(item); | |
| }); | |
| filtered.sort(function (a, b) { | |
| return (a[field] > b[field] ? 1 : -1); | |
| }); | |
| if (reverse) filtered.reverse(); |
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
| .constant('Utils', (function () { | |
| return { | |
| addRange: function (dest, source, mapFunction) { | |
| _.forEach(source, function (elem) { | |
| dest.push(mapFunction ? mapFunction(elem) : elem); | |
| }); | |
| }, | |
| resetMomentTime: function (moment) { | |
| return moment.hour(0).minute(0).second(0).millisecond(0); | |
| } |
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 R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/; | |
| // 1 2 3 4 5 6 7 8 9 10 11 | |
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 map(collection, callback) { | |
| var index = -1, | |
| length = collection ? collection.length : 0, | |
| result = []; | |
| if (angular.isArray(collection)) { | |
| while (++index < length) { | |
| var part = callback(collection[index], index, collection); | |
| pushAll(result, part); | |
| } |
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 underscore = require('underscore'); | |
| var underscoreStr = require('underscore.string'); | |
| var concat = require('gulp-concat'); | |
| var gulp = require('gulp'); | |
| var exclude = ['lib1', 'lib2']; | |
| gulp.task('bundle-libraries-auto', ['bower'], function(){ | |
| var bowerFile = require('./bower.json'); | |
| var bowerPackages = bowerFile.dependencies; |
OlderNewer