Skip to content

Instantly share code, notes, and snippets.

View thulioph's full-sized avatar
🔥

Thulio Philipe thulioph

🔥
View GitHub Profile
Feeds({
"locais": [
{
"Id": 1,
"Latitude" : -8.05719,
"Longitude": -34.882387,
"Descricao": "Aqui vem um título 1",
"Icone": "muitobem",
"Sintoma": ""
},
@thulioph
thulioph / envio_form.php
Created June 18, 2014 20:52
envio de formulario via php
<?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 />
@thulioph
thulioph / Gruntfile.js
Last active August 29, 2015 14:07
Gruntfile
"use strict";
module.exports = function(grunt) {
// Definição dos arquivos js
var filesJS = [
'src/js/APP.js'
];
// Load all tasks
@thulioph
thulioph / exe09.html
Last active August 29, 2015 14:17
exe09.html
<!doctype html>
<html data-ng-app="workshopBeMEAN">
<head>
<title>{{ workshop }}</title>
<style>
.user-avatar {
width: 200px;
}
.user-label {
@thulioph
thulioph / beers.js
Created March 13, 2015 23:57
beers js
(function() {
'use strict';
angular.module('myApp.beers', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/beers', {
templateUrl: 'modules/beers/views/beers.html',
controller: 'BeersCtrl'
})
@thulioph
thulioph / beers.html
Created March 13, 2015 23:59
beers html
<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>
@thulioph
thulioph / controller.js
Created March 14, 2015 00:03
controller beers.js
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.
@thulioph
thulioph / api.js
Created March 14, 2015 00:07
rotas beers express
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
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
@thulioph
thulioph / upas.json
Last active October 1, 2015 18:23
Recife upa's
[
{
"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"