1
2
3
feed = RssParser.run("http://ws.audioscrobbler.com/1.0/user/me/recenttracks.rss")
  song1 = feed[:items][0][:title]
...

Ruby Think this needs a loop

by juo100@gmail.com, September 06, 2008 19:54, 3 refactorings, tagged with ruby, loop, noob

Im new to Ruby, I think it ...

B543a43dc8cb0aae562278484db60d25 Talk
1
2
3
4
<?php

$payload = array(array(
...

PHP Array and ForEach Loop

by goodespeler.myopenid.com, August 12, 2008 17:45, 1 refactoring, tagged with array, foreach, loop

Hi. I'm constructing an XML...

B04f7f475867f6b47a59b49dfabc0daf Talk
1
2
3
4
<?php
/*
 * This is a test of a rules based iterative algorithm...
...

PHP Rules Based Iterator

by James Stansfield, June 15, 2008 13:52, 1 refactoring, tagged with php, loop, iterate, rules, array

I had need for an iterative...

42e1363a474387e41af8f8219797e112 Talk
1
2
3
4
module Every
  @interval, @stopped = 0.0, true
  @numwords = {"one"=>1, "two"=>2, "three"=>3, "four"=>4, "five"=>5, "six"=>6, "seven"=>7, "eight"=>8, "nine"=>9,
...

Ruby Every repeat module

by Ryguy, June 13, 2008 18:38, 1 refactoring, tagged with ruby, loop

Loop a block of code every ...

Ba665f86f90a1982af7b9c857418fcdb Talk
1
2
3
4
def find_npa(dialed_nxx)
  
  nxx_819 = [ 205, 208, 210, 213, 243 ]
...

Ruby Array iteration

by Titanous, June 11, 2008 23:08, 2 refactorings, tagged with array, iteration, loop, each

I'm new to Ruby, so give me...

4b81fa52ec2103d12ecbd5993463b2b5 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