Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged ruby



« Prev 1 Next »
From the Pickaxe, 4th edition, p. 352: A rescue clause with no parameter is treated as if it had a parameter of StandardError. This means that some lower-level exceptions will not be caught by a parameterless rescue class. If you want to rescue ev...
1 90 posted 8 years ago by cczona
0 47 posted 9 years ago by stayce
0 51 posted 10 years ago by choise
Because different systems put it in different places.
0 55 posted 10 years ago by alvarezrilla
Sample log line: [INFO] 2009-03-06 20:47:35 | controller::bla | user: vincentvega | ip: 127.0.0.1
0 84 posted 10 years ago by benjay
0 44 posted 10 years ago by hlubek
When installing mysql and mysql-dev with fink, gem is unable to find the mysql headers and libraries: you should specify their location. If compiled manually from source, gem will find it if /usr/local/mysql (or what ever other location you specified...
0 72 posted 12 years ago by iblis
Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:
0 63 posted 12 years ago by cczona
0 116 posted 13 years ago by sudarkoff
There's another snippet here that's pure Ruby. This one can be used from the command line directly. The previous version still used Ruby, this one is pure shell.
0 74 posted 13 years ago by plexus
« Prev 1 Next »