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
<form method="post" action="teste.php"> | |
<input type="text" name="usuario" required> | |
<input type="password" name="senha" required> | |
<button>Entrar</button> | |
</form> |
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
O projeto do moodle está com 10% feito, estava sendo feito apenas por mim e agora um brother que está começando com NodeJs também entrou, criei uma organização no github e transferir o moodle pra la, como moodle-core. | |
Estou ainda definindo as coisas básicas que ele terá, para depois criar extensões como (moodle-university e moodle-school), para adaptar a esses dois paradigmas. Vi que ficaria robusto demais e preferi deixar ele simples. | |
Vou explicar como está o estado atual: | |
Estamos usando o express-load pra fazer o carregamento do projeto, sendo assim se tornará MVC. | |
Não esta usando um framework javascript na parte do client ainda, pois estou analisando qual será o mais adequado e depois discutir com quem está contribuindo para incluir no mesmo. | |
Está sendo usado o swig como template engine, pois achei fácil de manusear. | |
Estamos começando pelo admin, pois é ele que fará o cadastro de tudo (aluno, professor, curso e etc), tudo no projeto está em ingles. | |
Como é muita coisa, porém repetitiva, estou definindo a |
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
Site Oficial do grupo | |
http://angularjsbrasil.com.br/ | |
Excelente fonte de informação, em doses homeopáticas e bem úteis | |
http://www.egghead.io/ | |
Diferença entre attrs.$observe e scope.$watch | |
http://stackoverflow.com/questions/14876112/difference-between-observers-and-watchers | |
Videos e mais vídeos |
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
<h1>Home</h1> |
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
<!DOCTYPE html> | |
<html ng-app="app"> | |
<head> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body ng-controller="appcontroller"> | |
<ul> |
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": "Gratinado de frango", | |
"url": "gratinado-de-frango", | |
"thumbnail": "url-thumb", | |
"image": "url-image", | |
"tags": [ | |
{ | |
"name": "gratinado" | |
}, |
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
//resultado do req.body | |
{ | |
'clients[0][user]': '547e197cf728c42342181858', | |
'clients[0][permission]': 'true' | |
} | |
//array para enviar a api | |
var emails = [{ | |
user: '547e197cf728c42342181858', | |
permission: true |
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
ItemSchema.statics.getTotalItem = function(empresa, callback){ | |
this.find().count(function(err, result){ | |
if(err){ | |
callback(err, null); | |
}else{ | |
callback(null, result); | |
} | |
}); | |
} |
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 mysql = require('mysql'); | |
var connection = require('express-myconnection'); |
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 s3 = require('s3'); | |
var s3Options = { | |
accessKeyId: "", | |
secretAccessKey: "" | |
}; | |
var awsS3Client = new AWS.S3(s3Options); | |
var options = { | |
s3Client: awsS3Client, | |
// more options available. See API docs below. |