Skip to content

Instantly share code, notes, and snippets.

View revathskumar's full-sized avatar

Revath S Kumar revathskumar

View GitHub Profile
@revathskumar
revathskumar / earth-day.js
Created April 22, 2013 06:12
Google doodle Earth day
(function () {
var h = void 0,
k = !0,
n = null,
p = !1,
q, s = this,
aa = function (a) {
var b = typeof a;
if ("object" == b) if (a) {
if (a instanceof Array) return "array";
config.autoload_paths += %W(#{config.root}/lib)
@revathskumar
revathskumar / development.rb
Last active December 16, 2015 06:18
Custom directories with classes and modules you want to be autoloadable.
# Add to configure block in config/environments/development.rb
# Custom directories with classes and modules you want to be autoloadable.
config.autoload_paths += %W(#{config.root}/lib)
@revathskumar
revathskumar / branch.sh
Last active December 15, 2015 22:59
Gists for the blog : contribute to Open source on github http://blog.revathskumar.com/2013/04/contribute-to-open-source-on-github.html
git checkout -b update_yo
@revathskumar
revathskumar / dabblet.css
Created April 5, 2013 09:48
Implementing "new" operator in Js
/**
* Implementing "new" operator in Js
*/
@revathskumar
revathskumar / dabblet.css
Created April 5, 2013 07:27
Difference between "apply" and "call" method
/**
* Difference between "apply" and "call" method
*/
mylibrary.firstFuction();
mylibrary.secondFunction();
@revathskumar
revathskumar / document_fragement.js
Last active December 15, 2015 18:19
Reducing reflow by using DocumentFragement
var df = document.createDocumentFragment();
var n=5;
var wrapper = document.getElementsByTagName("ul")[0];
while(n--){
var inner = document.createElement('li');
inner.innerHTML = "Inner" + n;
df.appendChild(inner);
}
wrapper.appendChild(df);
@revathskumar
revathskumar / cgi_install.sh
Last active December 15, 2015 17:59
Yeoman + PHP Snippets for blog post
sudo apt-get install php5-cgi