Welcome To Snipplr
Everyone's Recent Snippets Tagged ruby
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
It's necessary to do this for each of automatic_attrs, override_attrs, normal_attrs and default_attrs
0
837
posted 14 years ago by therobot
Quick conversion from a string of binary into ascii, and back again.\r\nUse B* for MSB and b* for LSB first.
0
826
posted 14 years ago by jimbobmcfred
I’ve recently had to parse some pretty large XML documents, and needed a method to read one element at a time.
Here’s a fairly simple solution in Ruby form.
0
827
posted 14 years ago by dom111
Just a funny, yet usefull fixture for testing users in a rails app.
Using "somewhat real" fixtures, will keep testing both fun and realistic.
Knowing that "Crabbe_ugly_nick" failed, is a lot easier to communicate then knowing "user_t_x01 failed"
0
721
posted 14 years ago by berkes