Skip to content

Instantly share code, notes, and snippets.

View rtvalluri's full-sized avatar

Raviteja Valluri rtvalluri

View GitHub Profile
@rtvalluri
rtvalluri / ultimate-ut-cheat-sheet.md
Created September 14, 2016 07:52 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@rtvalluri
rtvalluri / storeImgInMongoWithMongoose.js
Created March 17, 2016 07:02 — forked from aheckmann/storeImgInMongoWithMongoose.js
store/display an image in mongodb using mongoose/express
/**
* Module dependencies
*/
var express = require('express');
var fs = require('fs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// img path
@rtvalluri
rtvalluri / gist:ad400ae54c382029fae3
Last active August 29, 2015 14:27 — forked from liamcurry/gist:2597326
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})