1 2 3
def render_page_sitemap(scope, sitemapname,statics, machines, lang) ...
1 2 3
;(function($) { $.fn.extend( ...
JavaScript filter selectbox with 3000+...
This is a little jQuery scr...
1 2 3 4
<?php //class class Collection{ ...
PHP How should I optimize this ...
Hi everybody!
I'm kinda ne...
1 2 3 4
private static void Log(object message, MessageType type) { string str = message.ToString(); ...
C# Line splitting optimization
This is a console logging f...
1 2 3 4
require 'net/sftp' class Net::SFTP::Session ...
Ruby NET::SFTP clear a remote di...
I'm trying to clear a remot...
1 2 3 4
<?php function word_limiter( $text, $limit = 30, $chars = '0123456789' ) { if( strlen( $text ) > $limit ) { ...
PHP Limit amount of words displ...
It returns a string with a ...
1 2 3 4
using System; using System.Collections.Generic; using System.Linq; ...
C# Cached IEnumerable<T>
Hello,
I created a this ...
1 2 3 4
class Array # insert i between each element in the array ...
Ruby Ruby: array intersperse, ef...
Intersperse is a method of ...
1 2 3 4
#!/bin/bash # Global variables ...
Bash Adding speed to script
I'm trying to collect custo...
1 2 3 4
public static String findsite(InputStream text) { String site, line = null; Boolean nospace = true; ...
Java speed up this horrendous co...
I don't know too much about...
1 2 3 4
class Item def raw_tag_list; "one, two, three, four, five"; end def public_tags; [<#Tag name=two>, <#Tag name=five>, <#Tag name=one>, <#Tag name=four>, <#Tag name=three>]; end ...
Ruby Tag ordering code
Is there a faster way to do...
1 2 3 4
def haar_1d(a) r = [] (Math.log(a.length) / Math.log(2) - 1).to_i.downto(0) { |j| ...
Ruby Fast Haar Wavelet Transform
Anyone want to help me opti...
1 2 3 4
public static String[] loadFile(final String f) { String thisLine; final SortedSet<String> s = new TreeSet<String>(); ...
Java Efficiently load a text fil...
Has full "finally" blocks, ...
1 2 3 4
// For faster converting of dates to strings char* sLeadingZeroIntegerValues[] = { "00","01","02","03","04","05","06","07","08","09", ...
C++ Stream ADODB recordset into...
Can we make the code betwee...
1 2 3 4
#!/usr/bin/ruby require 'builder' require 'fasterCSV' ...
Ruby Speed up DB access?
Is it possible to speed up ...
1 2 3 4
function state_classes(updateall) { var value = display.value * 1, tempcolor; for (var i = 1; i <= 118; i++) { ...
JavaScript Color elements by state of ...
Logic is cheap and DOM is e...
1 2 3 4
module Enumerable # Sorts the enumeration by mapping the # values in the enumeration through the given block. ...
Ruby sort_by_multiple
require "benchmark"
data_s...
1 2 3
#include <math.h> #include <stdio.h> ...
C Fastest way to get value of pi
Solutions welcome in any la...
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
Script was written on AS3. ...
1 2 3 4
$.fn.textNodes = function() { var ret = []; this.each( function() { ...
JavaScript [jQuery] All descendent tex...
This function returns a jQu...
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
Watch out for edge cases, l...
1 2 3 4
# Boids - A Shoes Application # # Author : Wally Glutton - http://stungeye.com ...
Ruby Boids - A Shoes Application
You will need Shoes install...
1 2 3
public PreviewTreeModel(Collection<FileDescription> files) { ...
Java Create a tree out of a coll...
I would like to transform a...
1 2 3 4
SCRIPT="gen_${1}.sql" echo "--gen_${1}.sql" > $SCRIPT typeset -i counter ...
Bash Slow bash for loop.
Here's a quick and dirty ba...
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
Base WHAT??? Well, 62 is th...
Hi,
I'm looking for a wa...