- Clear feature ownership
- Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
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
var insertUsers = (function () { | |
var nomes = [ | |
'jose','carlos','pedro','joao', 'joaquim' , | |
'raul' , 'vinicius' , 'maria' , 'madalena' , | |
'carla' | |
]; | |
var usersNames = [ | |
'joseMilGrau','carlosFumacinha','pedroPedroca','joaoDosMeuCunhao', | |
'joaquimFumaFinin','raulConsiderado','Vivi','mariaMarola','madalenaLena', |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
//OS DADOS DOS MOTORISTAS VEM DE UMA REQ AJAX | |
var motoristas = [ ]; | |
$.ajax({ | |
url:'http://localhost:3412/api/lubriPopulate', | |
success:function(data) { | |
motoristas = data; |
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
Running "protractor:chrome" (protractor) task | |
Starting selenium standalone server... | |
[launcher] Running 1 instances of WebDriver | |
Selenium standalone server started at http://192.168.0.104:36105/wd/hub | |
Products View | |
CREATE Products | |
[127.0.0.1:52874] CONNECTED | |
GET /api/products 200 26ms - 2b |
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
const Models = require('../../models/') | |
const MODEL_NAME = __dirname.split('modules')[1].slice(1) | |
const PREFIX = 'cal_' | |
const PRIMARY_KEY = PREFIX + 'cod' | |
const ACTIONS_PATH = '../../actions/' | |
let offset = 0 | |
let limit = 10 | |
let attributes = [ | |
PRIMARY_KEY, |
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
module.exports = (Models, MODEL_NAME, options, include) => (req, res, next) => { | |
options.offset = options.limit * req.params.pag | |
options.include = include | |
<<<<<<< HEAD | |
======= | |
>>>>>>> 2936f247729636a926e85e675976a2b1aa9f086c | |
Models[MODEL_NAME].findAll(options) | |
.then((data) => { | |
res.json(data) |
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
Algoritmo "calculaTrocoHc3" | |
Var | |
valor_compra, valor_pago,troco:real | |
notas50,notas20,notas10,notas5,notas2,notas1:inteiro | |
Inicio | |
escreva("Digite o valor da compra :") | |
leia(valor_compra) | |
escreva("Digite o valor a pago :") | |
leia(valor_pago) |
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
/* | |
DISCIPLINA: ESTRUTURA DE DADOS | |
PROFESSOR: JOSÉ HONORATO FERREIRA NUNES | |
DATA DA AULA : 03/11/2017 | |
DATA DA ENTREGA : 09/11/2017 | |
ENVIAR P/ : honoratonunes@gmail.com | |
Escrever um programa que cadastre o nome, a matrÃcula e duas notas | |
de vários alunos. Em seguida imprima a matrÃcula, o nome e a média de | |
cada um deles. |
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
/* | |
a) -> | |
b) -> | |
*/ | |
#include <locale.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
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
const Sequelize = require('sequelize') | |
const fs = require('fs') | |
const path = require('path') | |
let database = null | |
const loadModels = (sequelize) => { | |
const dir = path.join(__dirname, '../modules/models') | |
const models = [] |
OlderNewer