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
// Breakpoints | |
// Base: 16px | |
// Small: 688px - 43em | |
// Tablets: 768px - 48em | |
// Desktop: 1024px - 64em | |
// Large Screen 1: 1440px - 90em | |
// Large Screen 2: 1600px - 100em |
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 http = require('http'); | |
// Criando o servidor para o proxy | |
http.Server(function(req, res){ | |
res.writeHead(200, { | |
'Content-Type' : 'application/json; charset=utf-8', | |
'Transfer-Encoding' : 'chunked' | |
}); | |
setInterval(function(){ |
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 methodOverride = require('method-override') | |
// NOTE: when using req.body, you must fully parse the request body | |
// before you call methodOverride() in your middleware stack, | |
// otherwise req.body will not be populated. | |
app.use(methodOverride(function(req, res){ | |
if (req.body && typeof req.body === 'object' && '_method' in req.body) { | |
// look in urlencoded POST bodies and delete it | |
var method = req.body._method |
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"> | |
<title>{{ workshop }}</title> | |
<body> | |
<div data-ng-controller='BeerController'> | |
{{ cervejas }} | |
<pre>Ordenando por predicate = {{predicate}}; reverse = {{reverse}}</pre> | |
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"> | |
<title>{{ workshop }}</title> | |
<body> | |
<div data-ng-controller='BeerController'> | |
<!-- Exibição do array de cervejas setado no BeerController --> | |
{{ cervejas }} | |
<pre>Sorting predicate = {{predicate}}; reverse = {{reverse}}</pre> |
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
<!doctype html> | |
<html data-ng-app="workshopBeMEAN"> | |
<title>{{ workshop }}</title> | |
<body> | |
<div data-ng-controller='BeerController'> | |
<!-- Exibição do array de cervejas setado no BeerController --> | |
{{ cervejas }} | |
<pre>Sorting predicate = {{predicate}}; reverse = {{reverse}}</pre> |
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 http = require('http'); | |
// Criando o servidor para o proxy | |
http.Server(function(req, res){ | |
res.writeHead(200, { | |
'Content-Type' : 'application/json; charset=utf-8', | |
'Transfer-Encoding' : 'chunked' | |
}); | |
setInterval(function(){ |
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 = function(app) { | |
var Schema = require('mongoose').Schema; | |
var People = Schema({ | |
Name: String, | |
Address: { | |
type: Schema.Types.ObjectId, | |
ref: 'Address' | |
}, |
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
javascript:function createLinks(){$(document).ready(function(){$(".hotblock table tbody tr").each(function(e,c){var a=$(c).children("td");$(a).each(function(c,a){var b=$(a).children("img"),d=/\d{7}/.exec(b.attr("data-original"));null!=d&&(b.attr("onClick","javascript:window.open('http://beeg.com/"+d+"')"),b.attr("style","cursor:pointer"))})})})}createLinks();void(0); |
OlderNewer