Skip to content

Instantly share code, notes, and snippets.

View BasanthVerma's full-sized avatar
🤘

Basanth Verma BasanthVerma

🤘
View GitHub Profile
@BasanthVerma
BasanthVerma / ChatMessage.java
Created September 2, 2016 10:04 — forked from puf/ChatMessage.java
Zero to App: Develop with Firebase (for Android - Google I/O 2016)
package com.google.firebase.zerotoapp;
public class ChatMessage {
public String name;
public String message;
public ChatMessage() {
}
public ChatMessage(String name, String message) {
@BasanthVerma
BasanthVerma / Simple Node JS server
Last active July 28, 2016 09:45
Simplest node.js Server. Paste this in a file with .js extension and run it from Command line "node <fileName>.js"
const http = require('http');
const hostname = '127.0.0.1';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/html');
res.end('Hello, from Node js\n');
});
@BasanthVerma
BasanthVerma / simpleServer.js
Created June 27, 2016 12:58 — forked from ronanguilloux/simpleServer.js
Damn Simple NodeJs Server demo
/*
* server.js
* Copyright (C) 2014 ronan <ronan@MacBook-Pro-de-Ronan.local>
*
* Distributed under terms of the MIT license.
*/
// $ npm install connect
// $ npm install serve-static
// $ node simpleServer.js