1
2
3
4
public static function getColorFromString(color:String):int
{
    return parseInt(new RegExp(/[0-9a-fA-F]+/).exec(color),16);
...

ActionScript Get color from string

by shaman4d.blogspot.com, July 11, 2008 10:54, 4 refactorings, tagged with speed, convert, as3

Script was written on AS3. ...

9a74ef7809e84411f21dd71771cf0534 Talk
1
2
3
4
$.fn.textNodes = function() {
  var ret = [];
  this.each( function() {
...

JavaScript [jQuery] All descendent tex...

by jed, June 29, 2008 07:35, 3 refactorings, tagged with jquery, dom, speed, recursive

This function returns a jQu...

7b72d5a18ab92129692e97a76a153fe0 Talk
1
2
3
4
function calc_color(value, start, end, min, max) {
    var n = (value - min) / (max - min);
    var s = parseInt(start.replace("#", ""), 16);
...

JavaScript Hex color between two colors

by Lucent, March 11, 2008 08:27, 3 refactorings, tagged with speed

Watch out for edge cases, l...

38daf62a7887b44454a78a37552b22e4 Talk
1
2
3
4
# Boids - A Shoes Application
#
# Author       : Wally Glutton - http://stungeye.com
...

Ruby Boids - A Shoes Application

by stungeye, March 03, 2008 06:42, No refactoring, tagged with boids, swarm, shoes, vector, speed

You will need Shoes install...

0611073adbcf46f93b7d8bf059c109b8 Talk
1
2
3
public PreviewTreeModel(Collection<FileDescription> files)
	{
...

Java Create a tree out of a coll...

by Loid, March 02, 2008 19:14, 1 refactoring, tagged with tree, file, speed

I would like to transform a...

2b3b5047901ac67fefd8b392c26027b4 Talk
1
2
3
4
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...

Bash Slow bash for loop.

by furtive, February 07, 2008 19:57, 6 refactorings, tagged with bash, speed, loop

Here's a quick and dirty ba...

Avatar Talk
1
2
3
4
SIXTYTWO = ('0'..'9').to_a + ('a'..'z').to_a + ('A'..'Z').to_a

def to_s_62(i)
...

Ruby Base 62 Encoding

by michiel, November 01, 2007 01:42, 1 refactoring, tagged with speed

Base WHAT??? Well, 62 is th...

7c45f63f61e478233f0c2ad3006b178c Talk
1
2
3
4
#Functions [javscript]
var ms = 0;
var state = 0;
...

JavaScript Stop Watch

by richardhealy, October 27, 2007 13:31, 3 refactorings, tagged with time, clock, speed, test, javascript

I use this to test speed of...

28e65a85a625f7c0689bcf96ccf6043d Talk