Skip to content

Instantly share code, notes, and snippets.

View hallison's full-sized avatar
😊
I may be slow to respond.

Hallison Batista hallison

😊
I may be slow to respond.
View GitHub Profile
cd <project>
find . -name ".svn" -exec rm -rf {} 2> /dev/null \;
cd ..
cp -ru <project>/* <svn-project>
cd <svn-project>
svn status
@hallison
hallison / Array to String with commas and "and" before the last element
Created July 30, 2008 01:15
Array to String with commas and "and" before the last element
array = ["one","two","three","four","five"]
join = array[0..-2].join(', ') + " and " + array[-1].to_s + " are numbers that belongs to the array of integers."
puts join
# "one, two, three, four and five are numbers that belongs to the array of integers."