Skip to content

Instantly share code, notes, and snippets.

View himelnagrana's full-sized avatar

Himel Nag Rana himelnagrana

View GitHub Profile
@ajaxray
ajaxray / clearDb.js
Created August 4, 2012 09:36
Data generating for integration testing in MongoDb application
function removeAll() {
var names = db.getCollectionNames();
for(var i = 0; i < names.length; i++) {
if(names[i] == "system.indexes") continue;
db[names[i]].dropIndexes();
db[names[i]].remove({});
//db[names[i]].drop();
}
}
@Integralist
Integralist / bootstrap.css
Created November 24, 2011 14:16
List of Twitter Bootstrap CSS classes
/*
* Scaffolding
* Basic and global styles for generating a grid system, structural layout, and page templates
* ------------------------------------------------------------------------------------------- */
.container
Sets a width of 940px which also centres the content (clears floated elements before/after)
.container-fluid
Sets a minimum width of 940px (clears floated elements before/after)