Skip to content

Instantly share code, notes, and snippets.

Nitish Phanse nitish24p

Block or report user

Report or block nitish24p

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View server.js
const app = require('./app.js');
const http = require('http')
const server = http.createServer(app);
const PORT = process.env.NODE_ENV || 5000;
server.listen(PORT, () => {
console.log(`Listening to port ${PORT}`);
})
@nitish24p
nitish24p / app.js
Last active Nov 20, 2017
Qucikfire node server
View app.js
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}))
app.get('/status', (req , res) => {
res.send({
View initAva.js
import test from 'ava';
function sum (a, b) {
return a + b;
}
test('foo is being tested', t => {
t.pass();
})
test('bar is being tested', async t => {
const bar = Promise.resolve('bar');
@nitish24p
nitish24p / Javascript immutable Operations es6Array.md
Last active Oct 16, 2017
es6 Array immutable Array Actions
View Javascript immutable Operations es6Array.md

I have an array by the name students and a student object

let students = []

let student = {
  name: '',
  rollNumber: '',
  age: '',
  rank: ''
}
You can’t perform that action at this time.