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 ( request, response){ | |
response.writeHead(200, {'Content-Type':'text/html'}); | |
response.end('<h1>Supervisor test - 2</h1>'); | |
}).listen(52273, function(){ | |
console.log("Server Running at http://127.0.0.1:52273"); | |
}); |
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 ( request, response){ | |
response.writeHead(200, {'Content-Type':'text/html'}); | |
response.end('<h1>Supervisor test - 1</h1>'); | |
}).listen(52273, function(){ | |
console.log("Server Running at http://127.0.0.1:52273"); | |
}); |
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
npm install -g supervisor | |
npm install -g forever |
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
update table name set A = 1, B = 2; |
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 | |
head | |
title index Page | |
body | |
// JADE String | |
#header | |
h1 hello jade...! | |
h2 #{name}, we are the World | |
h3= description |
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"); | |
var fs = require('fs'); | |
var jade = require('jade'); | |
http.createServer(function ( request, response){ | |
fs.readFile("jadePage.jade", 'utf8', function(error, data){ | |
var fn = jade.compile(data); | |
response.writeHead(200, {'Content-Type':'text/html'}); | |
response.end(fn({ |
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
<h1><%=name%></h1> | |
<p><%=description%></p> | |
<hr/> | |
<%for(var i = 0;i<10;i++){%> | |
<h2>The Square of <%= i %> is <%= i*i%></h2> | |
<%}%> |
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"); | |
var fs = require('fs'); | |
var ejs = require('ejs'); | |
http.createServer(function ( request, response){ | |
fs.readFile("ejsPage.ejs", 'utf8', function(error, data){ | |
response.writeHead(200, {'Content-Type':'text/html'}); | |
response.end(ejs.render(data, { | |
name: 'booski', | |
description : 'Hellow ejs with node.js' |
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
select * from tableName where B in (select B from tableName group by B having count(B)>1); |
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
select * from (table name) group by (column name) having count(column name)>1; |
NewerOlder