make_resourceful do
    actions :all
    before(:create) { current_object.user = current_user }
...

Ruby make_resourceful plugin wit...

by rajesh, February 25, 2008 20:06, 1 refactoring, tagged with make_resoureful, google maps, ym4r_gm

Hi,

I have this contract...

1dd763e0b482e9ee14645ec2fa471634 Talk
require 'rubygems'
require 'data_mapper'
require 'benchmark'
...

Ruby DataMapper threaded benchmark

by Kevin Williams, February 20, 2008 04:38, 123 refactorings, tagged with orm, benchmark, datamapper

third of three - slowest of...

267942571862781dd912de6482a35f46 Talk
require 'rubygems'
require 'sequel'
require 'benchmark'
...

Ruby Sequel threaded benchmark

by Kevin Williams, February 20, 2008 04:35, 37 refactorings, tagged with orm, sequel, benchmark

second of three, not as fas...

267942571862781dd912de6482a35f46 Talk
require 'rubygems'
require 'active_record'
require 'benchmark'
...

Ruby ActiveRecord threaded bench...

by Kevin Williams, February 20, 2008 04:33, 6 refactorings, tagged with orm, activerecord, benchmark

first of three benchmarks, ...

267942571862781dd912de6482a35f46 Talk
#include <stdio.h>
#include <math.h>
int main ()
...

C Quanti bit per rappresentar...

by Tanino Rulez, February 20, 2008 00:16, 2 refactorings, tagged with int, integer, bit

Dato un intero,determinare ...

D8e099f752011ec60e809a733ef32a7e Talk
#include <stdio.h>
int main ()
{
...

C Int or Double/Float ?

by Tanino Rulez, February 20, 2008 00:11, 1 refactoring, tagged with c, int, double, float

Dato un numero,restituisce ...

D8e099f752011ec60e809a733ef32a7e Talk
javascript:
popw='';
y=window;
...

JavaScript Mathtex bookmarklet

by griflet, February 15, 2008 11:11, 2 refactorings, tagged with bookmarklet, mathtex, latex

Join the lines and save it ...

Aae34a7973a8d98e53764a1c89090c55 Talk
module Facon
  module Baconize

...

Ruby Including modules degradably

by chuyeow, February 10, 2008 14:45, 1 refactoring, tagged with ruby metaprogramming

Basically what I'm trying t...

00fd4ce27c06ba63e7ddca4c3d67e5ea Talk
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...

Bash Slow bash for loop.

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

Here's a quick and dirty ba...

55502f40dc8b7c769880b10874abc9d0 Talk
<?php

$params = array('SID','t','p','hilite');
...

PHP Removing Parameters from an...

by Martindale, February 07, 2008 17:32, 13 refactorings

Removing a list of paramete...

72f4ba51b784673a15a1e89d8d9f49d1 Talk
# in lib/product_scraper/base.rb
class ProductScraper::Base
  def product_pages
...

Ruby OO Ruby help, por favor

by misfo.myopenid.com, February 01, 2008 16:19, 3 refactorings, tagged with rails, oop, oo, lib

This is really my first att...

Cee19a4eb998343e677f7f1cfd4de5bb Talk
function odump(object, depth, max){
  depth = depth || 0;
  max = max || 2;
...

JavaScript Recursively dump an object

by hubfactor, February 01, 2008 12:40, 3 refactorings, tagged with javascript, recursive, dump

Given an object, iterate th...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
<table class="charge">
  <tr>
    <td colspan="100%" class="mainHeader"><%=@label.label%></td>
...

Ruby Iterating through a nested ...

by mwilliams, January 31, 2008 18:21, 3 refactorings, tagged with rails, ruby, Ruby on Rails, view, table, hash, nested hash, iterator, iterate

Good afternoon. I have a n...

4236ea6b84f4899b469e8edff4bf6d22 Talk
<%= stylesheet_link_tag 'style' %>
<%= stylesheet_link_tag site_short_name + "/stylesheet.css" %>

...

Ruby DRY up my forms!

by openid.aol.com/Zanoryt, January 30, 2008 05:36, 2 refactorings, tagged with Ruby on Rails, formbuilder, forms, dry form

Holy smokes! Maintaining th...

Ac1c51f25718910e4a6d19ee44b5d465 Talk
require 'net/http'
require 'uri'
require 'strscan'
...

Ruby Display jpg image url from ...

by Gregory Barborini, January 30, 2008 04:47, 5 refactorings, tagged with image, regex

This code display jpg image...

C1ed5a3bfbb74ac76594077b1db30041 Talk
<?php
# html
# 
...

PHP MediaWiki extension template

by griflet, January 29, 2008 18:42, 2 refactorings, tagged with mediawiki wiki extension

Here's a nice little templa...

Aae34a7973a8d98e53764a1c89090c55 Talk
<?php

require_once("arc/ARC2.php"); // http://arc.semsol.org/
...

PHP Parse del.icio.us RSS feed

by hubfactor, January 28, 2008 16:08, 3 refactorings, tagged with php, rdf, del.icio.us

Uses ARC RDF parser from ht...

Ed9c50a6db8b5e078b5ef84306a8477c Talk
class CPM
  def get_output_binding
    CustomBinding.new({
...

Ruby Custom binding from an object

by Mourner, January 27, 2008 17:33, No refactoring, tagged with binding, custom

Hi! I have a class with lot...

6d07e6d95a43357254698ce9723350e6 Talk
module AttrLazy
  
  def self.included(base_class)
...

Ruby ActiveRecord lazy attribute...

by cassidy.myopenid.com, January 26, 2008 19:25, 2 refactorings, tagged with rails activerecord plugin lazy

I threw this together as an...

55502f40dc8b7c769880b10874abc9d0 Talk
public List<double> GenerateLogNormalDistribution(int numberOfTimes, double mean, double standardDeviation)
{
    Random randomGenerator = new Random();
...

C# Lognormal Distribution

by Jonathan, January 26, 2008 02:07, 1 refactoring, tagged with C#, Lognormal distribution, Finance

Is there a better way to do...

55502f40dc8b7c769880b10874abc9d0 Talk
module ApplicationHelper
  def time_month(month)
    return Time.now.months_ago(month)
...

Ruby last_number_of_months

by gregf, January 20, 2008 14:13, 6 refactorings, tagged with Ruby on Rails

Just wrote my first rails a...

70b86492b31e21b0748cc637a6b2f05a Talk
/**
     * warning performs a cartesian product
     * @param list of NameAddress objects
...

Java clean up nested loops?

by getopenid.com/garretokelly, January 16, 2008 21:10, 6 refactorings

Given a list of NameAddress...

55502f40dc8b7c769880b10874abc9d0 Talk
check out: http://www.thethirteenthstory.com/WFCINC/site/

the menus grow in IE, fine in all other browsers
...

JavaScript growing menus ?

by Garrett, January 15, 2008 15:29, No refactoring, tagged with drop down menus

i know this isn't a help fo...

E9674d02c33d1d711a462026f40bbaf4 Talk
function db_cache_2($query)
 {
  // Query cache table
...

PHP DB Cache

by ellisgl.myopenid.com, January 14, 2008 22:48, 8 refactorings, tagged with php, cache, mysql, update

It's a DB caching scheme th...

8bba46dba9043c254e6eef1aa664e6f0 Talk
function makeClickableLinks($text) {

     # http
...

PHP Plain Text to clickable

by ccmehil.myopenid.com, January 14, 2008 12:49, No refactoring, tagged with regex clickable

This works for http:// http...

89dbcf960be1cdd31421ce72c79c9660 Talk