Skip to content

Instantly share code, notes, and snippets.

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");
});
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");
});
npm install -g supervisor
npm install -g forever
update table name set A = 1, B = 2;
doctype html
html
head
title index Page
body
// JADE String
#header
h1 hello jade...!
h2 #{name}, we are the World
h3= description
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({
<h1><%=name%></h1>
<p><%=description%></p>
<hr/>
<%for(var i = 0;i<10;i++){%>
<h2>The Square of <%= i %> is <%= i*i%></h2>
<%}%>
@Bongbooski
Bongbooski / ejs
Last active February 6, 2018 12:07
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'
select * from tableName where B in (select B from tableName group by B having count(B)>1);
select * from (table name) group by (column name) having count(column name)>1;