Welcome To Snipplr


Everyone's Recent Snippets Tagged ruby



It's necessary to do this for each of automatic_attrs, override_attrs, normal_attrs and default_attrs
0 1711 posted 15 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 1693 posted 15 years ago by jimbobmcfred
0 1502 posted 15 years ago by stayce
0 1334 posted 15 years ago by rkumar
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 1660 posted 15 years ago by dom111
0 1233 posted 15 years ago by rkumar
0 1344 posted 15 years ago by rkumar
0 3598 posted 15 years ago by alx_g
0 1272 posted 15 years ago by rkumar
0 1608 posted 15 years ago by viatropos
0 1437 posted 15 years ago by therobot
0 1532 posted 15 years ago by viatropos
0 3549 posted 15 years ago by almazom
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 1478 posted 15 years ago by berkes
0 1443 posted 15 years ago by pdxmph
0 1563 posted 15 years ago by choise
Easy way to populate a drop-down menu
3 2745 posted 16 years ago by chrisaiv