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(angular) { | |
| 'use strict'; | |
| var app = angular.module('test', []); | |
| app.directive('awesomplete', function() { | |
| function link(scope, element, attrs){ | |
| console.log(attrs); | |
| var elm = element[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
| _.mixin({ | |
| 'rejectByValues': function(collection, property, values) { | |
| return _.filter(collection, function(item) { | |
| return !_.contains(values, item[property]); | |
| }); | |
| } | |
| }); |
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 () { | |
| 'use strict'; | |
| function ProfileEditController($scope, $injector, profile, $state) { | |
| var vm = this, | |
| profileService = $injector.get('ProfileService'), | |
| $stateParams = $injector.get('$stateParams'), | |
| $modal = $injector.get('$modal'), | |
| $defaultCrudModal = $injector.get('$defaultCrudModal'); |
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
| this.list = element.all(by.repeater('item in items')).filter(function(elem) { | |
| return elem.isDisplayed(); | |
| }); |
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
| export PS1='\[\033[1;34m\]\!\[\033[0m\] \[\033[1;35m\]\u\[\033[0m\]:\[\033[1;35m\]\W\[\033[0m\] \[\033[1;92m\]$(__git_ps1 "(%s)")\[\033[0m\]\$ ' | |
| export GIT_PS1_SHOWDIRTYSTATE=1 |
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
| sudo echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
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
| { | |
| "always_show_minimap_viewport": true, | |
| "bold_folder_labels": true, | |
| "color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
| "font_face": "Hack", | |
| "font_size": 9, | |
| "highlight_modified_tabs": true, | |
| "ignored_packages": | |
| [ | |
| "Vintage" |
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
| // @use: fn.fqn(obj, 'result.message', '') | |
| var fn = { | |
| fqn: function(obj, path, fallback) { | |
| fallback = typeof fallback === 'undefined' ? {} : fallback; | |
| try { | |
| return eval('obj.' + path); | |
| } catch(e) { | |
| return fallback; | |
| } | |
| } |
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
| {% macro input(name, value, type='text', class="") %} | |
| <input type={{ type }} name={{ name }} value={{ value }} class="{{ class }}" /> | |
| {% endmacro %} | |
| {% macro select(name='', id='', class='', options='', first='Selecione' ) %} | |
| <select name="{{name}}" id="" {{ class }}> | |
| {% if first %} | |
| <option value="">{{first}}</option> | |
| {% endif %} | |
| {% for option in options %} |
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
| /* | |
| * grunt-swig | |
| * | |
| * | |
| * Copyright (c) 2015 Daniel França | |
| * Licensed under the MIT license. | |
| * My First Grunt Plugin | |
| */ | |
| 'use strict'; |