Skip to content

Instantly share code, notes, and snippets.

View kirantemojo's full-sized avatar

Kiran kirantemojo

  • Hyderabad
  • India
  • 21:24 (UTC +05:30)
View GitHub Profile
@kirantemojo
kirantemojo / 0_reuse_code.js
Created June 28, 2016 13:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/*
* Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js
*/
var http = require('http'),
fs = require('fs'),
util = require('util');
http.createServer(function (req, res) {
var path = 'video.mp4';