Ruby Title Case
'some string here'.gsub(/\b\w/){$&.upcase}
11381 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
'some string here'.gsub(/\b\w/){$&.upcase}
function each(a, f) { for(var i=0, l=a.length; i<l; i++) f(a[i]) }; each('a big blockquote br b center code div em form h1 h2 h3 h4 h5 h6 hr img iframe input i li ol option pre p script select small span strong style sub sup table tbody td textarea tr ul u'.split(' '), function(label){ this[label]=function(){ var tag=document.createElement(label); each(arguments, function(e){ if(e.nodeType) tag.appendChild(e); else { if(typeof e=='string' || typeof e=='number') tag.innerHTML+=e; else for(var p in e) { if(p=='style') for(var q in e[p]) tag[p][q]=e[p][q]; else o[q]=p[q]; }; }; }); return tag; }; });