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 947 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 924 posted 14 years ago by jimbobmcfred
0 784 posted 14 years ago by stayce
0 708 posted 14 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 945 posted 14 years ago by dom111
0 640 posted 14 years ago by rkumar
0 716 posted 14 years ago by rkumar
0 1011 posted 14 years ago by alx_g
0 683 posted 14 years ago by rkumar
0 882 posted 14 years ago by viatropos
0 769 posted 14 years ago by therobot
0 817 posted 14 years ago by viatropos
0 969 posted 14 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 799 posted 14 years ago by berkes
0 783 posted 14 years ago by pdxmph
0 850 posted 14 years ago by choise
Easy way to populate a drop-down menu
3 1094 posted 14 years ago by chrisaiv