Class Student attr_accessor brain, explode, beer def initialize(brain, explode, beer) ...
Ruby Fun with School and Ruby
by https://www.google.com/accounts/o8/id?id=AItOawlnEdwkKfBeo4dr8z-lFGJGbJTlVlMWFgE,
November 04, 2010 23:56,
1 refactoring, tagged with ruby, loop, student, school, beer
I am sure everyone has done...
def create_something(min_value)
loop do
something = SomeClass.generate_random
...
Ruby loop a random generator unt...
This is my version of loopi...
// routine for loading all grass sprites we can find char buffer[32]; std::string setname = "jungle"; ...
C++ Call sprintf_s only once
Can this routine be done wi...
$(document).ready(function(){
// get the text file to be parsed
$.get('test-data.txt', function(textData){
...
JavaScript Split text into unordered l...
Using jQuery, I'm trying to...
feed = RssParser.run("http://ws.audioscrobbler.com/1.0/user/me/recenttracks.rss")
song1 = feed[:items][0][:title]
...
Ruby Think this needs a loop
Im new to Ruby, I think it ...
<?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, iterate, loop, array, rules
I had need for an iterative...
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
Loop a block of code every ...
def find_npa(dialed_nxx) nxx_819 = [ 205, 208, 210, 213, 243 ] ...
Ruby Array iteration
I'm new to Ruby, so give me...
SCRIPT="gen_${1}.sql"
echo "--gen_${1}.sql" > $SCRIPT
typeset -i counter
...
Bash Slow bash for loop.
Here's a quick and dirty ba...
I want to apply some calcul...