Welcome To Snipplr
Everyone's Recent Snippets Tagged ruby
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
You can turn off warnings for a section of your code by setting $VERBOSE to nil. Even better is to codify this in a method. Since this method takes a block as its parameter, you can now pass it arbitrary chunks of code to execute without warnings.
1
727
posted 16 years ago by cczona
Returns the cartesian product of the receiver and the arrays given as arguments.
1
942
posted 16 years ago by ishikawa
This script will setup JBoss 4.2.2 to use null persistence (no DB, see http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQNullPersistence) when handling JMS messages.
1
709
posted 16 years ago by narkisr
https://www.chrisjmendez.com/2007/10/22/ruby-simple-example-of-threading/
3
1412
posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/21/ruby-how-to-iterate-through-an-array/
3
1258
posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/21/converting-an-array-into-yaml-loading-yaml-into-an-array/
1
1239
posted 17 years ago by chrisaiv
There are many functions available for Time, Month, Day, and Year. Below are a few examples I use frequently
1
985
posted 17 years ago by chrisaiv