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
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |
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
| module.exports = [{ | |
| name: 'Acre', | |
| shortname: 'AC', | |
| codigo_ibge: '12' | |
| }, { | |
| name: 'Alagoas', | |
| shortname: 'AL', | |
| codigo_ibge: '27' | |
| }, { | |
| name: 'Amapá', |
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
| import Ember from 'ember'; | |
| export default Ember.Mixin.create({ | |
| /** | |
| * the main hook: override to return a hash of models to set on the controller | |
| * @param model | |
| * @param transition | |
| * @param queryParams | |
| */ | |
| additionalModels: function() {}, |
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
| import Ember from 'ember'; | |
| export default Ember.Component.extend({ | |
| didRender() { | |
| Ember.$('.nav li a').on('click', function(clicked) { | |
| if (!Ember.$(this).hasClass("dropdown-toggle")) { | |
| Ember.$('.navbar-collapse').collapse('hide'); | |
| } | |
| }); | |
| } |
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
| 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
| import Ember from 'ember'; | |
| import AjaxService from 'ember-ajax/services/ajax'; | |
| import environment from 'web/config/environment'; | |
| export default AjaxService.extend({ | |
| host: environment.apiBaseUrl, | |
| session: Ember.inject.service(), | |
| headers: Ember.computed('session.session.content.authenticated.token', { | |
| get() { | |
| let headers = {}; |
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
| /** | |
| * beforeCreate | |
| * | |
| * @module :: Policy | |
| * @description :: Simple policy to inject the user creating a record into the records values. | |
| * Assumes req.user && req.user.id to be set when a user is logged in. | |
| * @docs :: http://sailsjs.org/#!documentation/policies | |
| * | |
| */ |
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 Sails = require('sails'), | |
| _ = require('lodash'); | |
| global.DOMAIN = 'http://localhost'; | |
| global.PORT = 1337; | |
| global.HOST = DOMAIN + ':' + PORT; | |
| before(function(callback) { | |
| this.timeout(50000); |
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
| import Ember from 'ember'; | |
| export default Ember.Mixin.create({ | |
| activate() { | |
| this._super(); | |
| Ember.run.next(() => { | |
| $(".modal").modal('show'); | |
| }); | |
| }, |
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
| filterContacts(filter) { | |
| var list = this.get('list'); | |
| return list.filter(function (item) { | |
| if(_match(item.name) || _match(item.professionalEmail) || _match(item.jobFunction) || _match(item.department) || _match(item.professionalPhone)) { | |
| return true; | |
| } else { | |
| return false; | |
| } | |
| }); |
OlderNewer