Welcome To Snipplr
Everyone's Recent Snippets Tagged ruby
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Programa de una calculadora en ruby ademas de contraseña y usuario
0
1051
posted 13 years ago by solhelios
Trabajo hecho en el campus de software de la universidad de granada . Responde a las preguntas!
0
875
posted 13 years ago by solhelios
Connect to three sites using threads and without using them. Fetch the response. Measure the benchmark.
0
670
posted 13 years ago by Shamaoke
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
964
posted 13 years ago by kendsnyder
Digs through the exim log and gives a count for every email address that's generating SMTP errors
0
637
posted 13 years ago by beaknit
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
1001
posted 13 years ago by brandonjp
Ruby
Ruby / Rails - A refresher reference for me because I forget... create project generate scaffold scaffolding migrate db
Ruby / Rails - A refresher reference for me because I forget how to do this... create project generate scaffold scaffolding migrate db start server
0
1063
posted 13 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
1630
posted 13 years ago by brandonjp
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
680
posted 13 years ago by insanedreamer
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
1453
posted 13 years ago by inko9nito