Welcome To Snipplr


Everyone's Recent Snippets Tagged ruby



A program fronm controlate your programs with dea age
0 369 posted 10 years ago by solhelios
I use this code snippet all the time. It allows me to parse a CSV file and transform it into an XML file.
0 543 posted 10 years ago by chrisaiv
Programa de una calculadora en ruby ademas de contraseña y usuario
0 375 posted 10 years ago by solhelios
0 255 posted 10 years ago by madr
Trabajo hecho en el campus de software de la universidad de granada . Responde a las preguntas!
0 332 posted 10 years ago by solhelios
0 260 posted 10 years ago by er-cico
0 301 posted 10 years ago by er-cico
Connect to three sites using threads and without using them. Fetch the response. Measure the benchmark.
0 250 posted 10 years ago by Shamaoke
0 333 posted 10 years ago by almazom
Ruby uses created_at and updated_at. Here cake will do the same thing. based on http://book.cakephp.org/view/1015/created-and-modified
0 380 posted 10 years ago by kendsnyder
is for easy pay
0 318 posted 10 years ago by andresbravog
0 287 posted 10 years ago by Shamaoke
0 635 posted 10 years ago by Shamaoke
Digs through the exim log and gives a count for every email address that's generating SMTP errors
0 246 posted 10 years ago by beaknit
0 416 posted 10 years ago by avioli
Data Types for DB, MySQL, SQLite, PHP, Ruby, Rails, JS, etc. because I forget them sometimes from Ruby on Rails Guides: Migrations http://bit.ly/hFWjT0 from Rails Migrations http://bit.ly/hI5zpz
0 397 posted 10 years ago by brandonjp
Ruby / Rails - A refresher reference for me because I forget how to do this... create project generate scaffold scaffolding migrate db start server
0 433 posted 10 years ago by brandonjp
links (full <a href="#"> element) to Show Edit Destroy Delete records in view *.erb must be in the record loop:
0 498 posted 10 years ago by brandonjp
if then statement... in a view file *.html.erb:
0 641 posted 10 years ago by brandonjp
0 240 posted 10 years ago by ringingEars
Place script into Automator (select "Run Shell Script" choose /usr/bin/ruby as the shell). You'll need to create a bit.ly account which will give you your API key for authentication.
0 259 posted 10 years ago by insanedreamer
IceCast server's sometimes offer meta-data information on a particular piece. Here's an example of a data scrape from Classical KUSC
0 319 posted 10 years ago by chrisaiv
Matches text between each pair of asterisks (see URL above for demo) **Example:** Make text between asterisks bold, like in Textile (in Ruby): `test.gsub(/(\*)+([^.*?$]+)+(\*)/, '<strong>\\2</strong>')`
0 613 posted 10 years ago by inko9nito