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
level=error,message=Invalid URL requested: /static-classified-data/motor/news-image/Solah1.jpg | |
level=error,message=Invalid URL requested: /static-classified/images/motoring/nissan.gif | |
level=error,message=Invalid URL requested: /static-classified/js/searchbar.js | |
level=error,message=Invalid URL requested: /static-classified/searchprinter.jsp | |
level=error,message=Invalid URL requested: /static-watchlist/watch_list_malay.html | |
level=error,message=Invalid URL requested: /static-classified/images/previous-icon.png | |
level=error,message=Invalid URL requested: /static-classified/images/property/turnberry_villas.gif | |
level=error,message=Invalid URL requested: /static-classified/searchprinter.jsp | |
level=error,message=Invalid URL requested: /static-classified/searchprinter.jsp | |
level=error,message=Invalid URL requested: /static-gtp/gtp_carousel.html |
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
- each item, ++i in cartItems | |
input(type="hidden",name="item_name_" + i,value=item.itemName) | |
input(type="hidden",name="amount_" + i,value=item.price) |
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: |
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
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
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 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
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
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
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">'); |
OlderNewer