Skip to content

Instantly share code, notes, and snippets.

View xshyamx's full-sized avatar
🎯
Life before death, strength before weakness, journey before destination

shyam xshyamx

🎯
Life before death, strength before weakness, journey before destination
View GitHub Profile
@xshyamx
xshyamx / Readme.md
Created April 9, 2013 08:29
Recipe 2: Preload Metadata

Recipe 2: Preload Metadata

Metadata that will be used across the application in various places can be cached using the application cache by using the JSON format and storing them as a javascript resource. Additional javascript code can be used while loading pages to include metadata from the javascript files and populate the combo boxes.

@xshyamx
xshyamx / stackoverflow-tags-wordle.js
Created March 15, 2013 06:01
Create a wordle from stackoverflow.com/tags
fm = document.createElement('form');
fm.action = 'http://www.wordle.net/compose';
fm.method = 'post';
document.body.appendChild(fm);
ta = document.createElement('textarea');
ta.name = 'wordcounts';
fm.appendChild(ta);
ta.appendChild(document.createTextNode(
[].map.call(
document.querySelectorAll('.tag-cell'),
@xshyamx
xshyamx / gist:4722338
Last active December 12, 2015 05:29
Get public key from private key file
ssh-keygen -y -f ~/.ssh/xshyamx-keys.pem
@xshyamx
xshyamx / gist:958853
Created May 6, 2011 12:20
Delete unversioned files in mercurial
hg st -nu | xargs rm