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
Feeds({ | |
"locais": [ | |
{ | |
"Id": 1, | |
"Latitude" : -8.05719, | |
"Longitude": -34.882387, | |
"Descricao": "Aqui vem um título 1", | |
"Icone": "muitobem", | |
"Sintoma": "" | |
}, |
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
<?php | |
extract($_POST); | |
$mens = " | |
<b>Nome:</b> ".$nome."<br /><br /> | |
<b>Banco:</b> ".$banco."<br /><br /> | |
<b>Assunto:</b> ".$assunto."<br /><br /> | |
<b>CPF ou Contrato:</b> ".$cpf."<br /><br /> | |
<b>Telefone:</b> ".$telefone."<br /><br /> | |
<b>Email:</b> ".$email."<br /><br /> |
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
"use strict"; | |
module.exports = function(grunt) { | |
// Definição dos arquivos js | |
var filesJS = [ | |
'src/js/APP.js' | |
]; | |
// Load all tasks |
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 data-ng-app="workshopBeMEAN"> | |
<head> | |
<title>{{ workshop }}</title> | |
<style> | |
.user-avatar { | |
width: 200px; | |
} | |
.user-label { |
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
(function() { | |
'use strict'; | |
angular.module('myApp.beers', ['ngRoute']) | |
.config(['$routeProvider', function($routeProvider) { | |
$routeProvider.when('/beers', { | |
templateUrl: 'modules/beers/views/beers.html', | |
controller: 'BeersCtrl' | |
}) |
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
<h2>Workshop Be MEAN</h2> | |
<p>Msg: {{ msg }}</p> | |
<table> | |
<thead> | |
<tr> | |
<th data-ng-click="ordenar('name')">Name</th> | |
<th data-ng-click="ordenar('price')">Price</th> | |
<th>Ações</th> | |
</tr> |
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 Beer = require('./model.js'); // Nome maiusculo porque é o nome do meu model e coloca o ./ pra dizer que tá na pasta. | |
var Controller = { | |
create: function(req, res) { | |
var dados = req.body; | |
// instacio os dados no model Beer | |
var model = new Beer(dados); | |
// dar um save pra salvar a informação. |
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 express = require('express'); | |
var router = express.Router(); | |
var Controller = require('../controller'); | |
// Create - enviar | |
router.post('/', function(req, res, next) { | |
Controller.create(req, res); | |
}); | |
// Retrieve - pegar |
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 express = require('express'); | |
var router = express.Router(); | |
var Controller = require('../controller'); | |
// Create - enviar | |
router.post('/', function(req, res, next) { | |
Controller.create(req, res); | |
}); | |
// Retrieve - pegar |
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":"UPA 24 HORAS DO 2 DISTRITO", | |
"latitude":-9.96641, | |
"longitude":-67.81928, | |
"logradouro":"RODOVIA BR 364 KM 125", | |
"numero":"20", | |
"bairro":"LOTEAMENTO SANTA HEL", | |
"cep":69908768, | |
"telefone":"(68) 3221 6775" |
OlderNewer