Skip to content

Instantly share code, notes, and snippets.

View leandroh's full-sized avatar
:shipit:
To deploy or not to deploy?

Leandro Pará leandroh

:shipit:
To deploy or not to deploy?
View GitHub Profile
@leandroh
leandroh / web-app-manifest.html
Created March 18, 2016 18:12
Declaração do manifesto de aplicativo web
<link rel="manifest" href="manifest.json">
@leandroh
leandroh / index.html
Created March 11, 2016 14:22
Hello World HTML5
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello World</title>
</head>
<body>
<h1>HTML5</h1>
<p>Aqui vamos nós!</p>
</body>
@leandroh
leandroh / index.html
Created March 9, 2016 11:09
Google Maps no seu site
<!DOCTYPE html>
<html>
<head>
<title>Google Maps no seu site</title>
</head>
<body>
<div id="mapa"></div>
</body>
</html>
@leandroh
leandroh / index.html
Created March 8, 2016 19:50
Minimal HTML5 document
<!doctype html><title>Minimal HTML5 document</title>
@leandroh
leandroh / index.html
Created March 8, 2016 19:36
Google Maps no seu site
<!DOCTYPE html>
<html>
<head>
<title>Google Maps no seu site</title>
</head>
<body>
</body>
</html>
@leandroh
leandroh / app.js
Created March 3, 2016 18:10
Node.js minimal web server
var express = require('express');
var bodyParser = require('body-parser');
var app = express();
app.use(bodyParser.json());
app.get('/maps', function(req, res) {
var dados = [
{
lat: -25.470991,
app.listen(8000, function() {
console.log('Servidor rodando na porta 8000.');
});
app.get('/maps', function(req, res) {
var dados = [
{
lat: -25.470991,
lon: -49.271036
},
{
lat: -0.935586,
lon: -49.635540
},
@leandroh
leandroh / body_parser.js
Created March 3, 2016 17:57
body-parser extracts the entire body portion of a request
app.use(bodyParser.json());
@leandroh
leandroh / express_object.js
Created March 3, 2016 17:52
Express object
var app = express();