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":"Location","value":"https://3ahk.localtunnel.com/login#loginPage"},{"name":"Set-Cookie","value":"pinion.sid=9clqqOCzv2xjkvF0E6q9A0It.JWld7dqXBoCkUQboxVJ6Yu4Nb1HUJRZ7bdXNGVDe42g; path=/; expires=Mon, 28 Nov 2011 09:29:38 GMT; httpOnly"}],"cookies":[{"name":"pinion.sid","value":"9clqqOCzv2xjkvF0E6q9A0It.JWld7dqXBoCkUQboxVJ6Yu4Nb1HUJRZ7bdXNGVDe42g","path":"/","expires":"2011-11-28T09:29:38.000Z","httpOnly":true,"secure":false} |
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
res.render('couplesearch', { | |
title: "Honeymoon!", | |
couples: results | |
}); |
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 server = require('../server'), | |
assert = require('assert'); | |
module.exports = { | |
'GET /': function(done){ | |
assert.response(server, | |
{ url: '/login' }, | |
{ status: 200, headers: { 'Content-Type': 'text/html; charset=utf-8' }}, | |
function(res){ | |
assert.includes(res.body, '<body id="login_page">'); |
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
require("colors"); | |
var red = "█".red; | |
var white = "█".white; | |
console.log(); | |
console.log([ | |
" ooooooooooooooooooo", | |
" oXXXXoXXXXooXXXXXXo", | |
" oXooXoXXoXooXXoXoXo", |
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
davidbanham@David-Banhams-MacBook-Pro:~/jadepit$ jade test.jade | |
/Users/davidbanham/node_modules/jade/lib/runtime.js:115 | |
throw err; | |
^ | |
Error: Jade:4 | |
2| p | |
3| | Look I'm a paragraph! | |
> 4| include head |
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 app = require('express').createServer(); | |
app.listen('3030'); | |
app.get('/', function(req, res) { | |
res.contentType('text/plain'); | |
res.send('This is the content', { 'Content-Disposition': 'attachment; filename=name.txt' }); | |
}); |
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') | |
http.createServer(function (req,res) { | |
res.writeHead(200, {'Content-Type':'text/plain'}); | |
res.end('Hello World! \n'); | |
}).listen(1337,"127.0.0.1"); | |
console.log('Server running ar http://127.0.0.1:1337//'); |
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 array = [0, 1, 2, 1, 3]; | |
var uniques = []; | |
for ( var i in array ) { | |
uniques[array[i]] = array[i]; | |
}; | |
console.log(uniques); | |
// Returns [ 0, 1, 2, 3 ] |
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
div.cont | |
div.header | |
h1 Get started | |
p We're still putting the finishing touches on things right now. | |
p If you'd like to be notified when we launch, please enter your details below: | |
p | |
form | |
label Email Address: | |
input(type="text", name="email") | |
label Wedding Date |
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
This: | |
p | |
form | |
label Email Address: | |
input(type="text", name="email") | |
label Wedding Date | |
input(type="text", name="date") | |
Renders this: |