//By Gubatron, just a silly function to clear the contents of a listbox object var ua = navigator.userAgent.toLowerCase(); var Browser = new Object() Browser.isIE = window.ActiveXObject ? true : false; Browser.isFirefox = (ua.indexOf(“firefox”)!=-1); function clearListbox(listboxObject) { if (Browser.isFirefox) { //in firefox “Option” objects remove themselves. var options = listboxObject.options while (options.length > 0) { options[options.length-1].remove() […]
Type the following on your cmd line (or make into an alias) cat ~/.bash_history | sort | uniq -c | sort -r | head In my case they are (for this week) ls fg svnSync (script I created) stats_fetch; stats_display (other scripts) cd crontab -e ps aux | grep ssh_map_command (another script) python emacs -nw
Ever since I started programming in Javascript, and doing asynchronous function calls, I’ve found myself to be addicted to passing functions as parameters. I do it a lot in python and php, it’s very easy to do this on all these dynamic typed languages. I never had this concept of passing functions as parameters, or […]