Skip to content

Instantly share code, notes, and snippets.

View websiddu's full-sized avatar
😎
Cool

Siddhartha websiddu

😎
Cool
View GitHub Profile
@websiddu
websiddu / deploy.rb
Last active August 29, 2015 14:21 — forked from ryanray/deploy.rb
# config/deploy.rb
# probably a lot of ways to improve this...
set :application, 'my_app'
set :repo_url, 'git@github.com:USERNAME/my_app.git'
# should set up a deploy user
set :user, 'deploy'
set :deploy_to, '/var/www/my_app'
set :scm, :git
function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
}
function countSheet(sheet) {
@websiddu
websiddu / 0_reuse_code.js
Created September 29, 2013 03:35
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