Get in the zone with me for a good 15 minutes, maybe you’ll catch a few eclipse tricks and you’ll learn a little bit about how I think (and make mistakes along the way of fixing something on FrostWire)
Related Posts
Google’s Chrome, no extensions? then no go
Please correct me if I’m wrong, but I didn’t read any mention of Browser extensions on the chrome document, I read about plugins (these are more like Flash plugin and what not), but nothing about extensions. This probably means: – No StumbleUpon toolbar 🙁 (I’m a stumbleupon.com addict, I feel crippled with chrome because of […]
Javascript Quicksort implementation with dynamic comparator.
[javascript] Array.prototype.swap=function(a, b) { var tmp=this[a]; this[a]=this[b]; this[b]=tmp; } function quickSort(array,comparator) { qsort(array,0,array.length,comparator); } /** * NOTE: the comparator is a dynamic function you will define like so comparator(a,b) { if (a > b) return 1; else if (a < b) return -1; else { return 0; } } * it is up to you […]
javascript: Get N random elements from a List
[javascript] /** * Walks linearly through the list to find an element. * returns true if it’s found. */ function elementIn(collection, element) { for (var i=0; i < collection.length; i++) { if (collection[i]==element) { return true; } } return false; } /** * Returns a new list of n random elements taken out of myList. […]