Skip to content

Instantly share code, notes, and snippets.

@samyakbhuta
samyakbhuta / mongo-find.sh
Created February 8, 2014 21:50
Quick and dirty mongo general purpose command line utility
#!/bin/sh
# Usage : ./mongo-find <db-name> <collection> <attribute> <attribute-value>
mongo $1 --eval \
"
print('Finding ....');
cursor = db.$2.find({'$3':'$4'});
while ( cursor.hasNext() ) {
printjson( cursor.next() );
@samyakbhuta
samyakbhuta / example.md
Created March 13, 2014 08:51
Reveal.js example

Hello World

var abc = function () {
	return 2+2;
}
var abc = function () {
@samyakbhuta
samyakbhuta / index.html
Created March 16, 2014 11:06
HTML5 Starter Page
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<!-- Add your site or application content here -->
<p>Hello world! This is HTML5 Boilerplate.</p>
</body>
</html>
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
@samyakbhuta
samyakbhuta / test.md
Last active August 29, 2015 14:07
Test

Designed to be usable by all Open Web developers, this reference page links to numerous resources about HTML5 technologies, classified into several groups based on their function.

MDN

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<audio src="http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg" controls>
Your browser does not support the <code>audio</code> element.
</audio>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<audio src="http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg" controls>
Your browser does not support the <code>audio</code> element.
</audio>
@samyakbhuta
samyakbhuta / gist:933863
Created April 21, 2011 06:34
First attempt for rap lyrics
Chorus : N P M , N P M, Everyboody say N P M,
Chorus : Pack it, Pack it, Just pack it !!
Solo : It handles dependencies,and we say it is divine !!
Solo : If you got no clue wh't hell it is, it's just fine !!
Chorus : N P M , N P M, Everyboody say N P M,
Chorus : Pack it, Pack it, Just pack it !!
-----
N P M is cool, for things it does for you !!
Noddy can't go without't, except the loo !!
@samyakbhuta
samyakbhuta / markdownSample.md
Created April 21, 2011 18:39
Mark down sample

Abc

Abc

###Abc### ##Abc## #Abc#

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
var a = "123";
var b = function(){};