(forgot the ref to the code snippet)
This commit is contained in:
@@ -34,6 +34,7 @@ for SCANNETWORK in $(ls ~/irclogs/); do echo -n -e "$SCANNETWORK\t" && grep http
|
||||
*/
|
||||
|
||||
String.prototype.ColorHash = function(){
|
||||
// from http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/
|
||||
var hash = 0;
|
||||
if (this.length == 0) return hash;
|
||||
for (i = 0; i < this.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user