narkisr


Member since 01/15/2008

10 snippets

5285 profile views

4 Comment(s) Posted

View their favorites

their Tags


Profile

Achievement

first submission:submitting first snipplet

narkisr's Recent Ruby Snippets



« Prev 1 Next »
Sniffing http request & response using pcap in Ruby.
2 652 posted 14 years ago by narkisr
Groovy has the as keyword which enables the implementation of a Java interface by using the as keyword, its quite easy to mimic this in JRuby.
0 741 posted 14 years ago by narkisr
Creating a object that doesn't have any methods in Ruby (regular objects inherit methods from Object class), useful for Proxies that use method missing (http://onestepback.org/index.cgi/Tech/Ruby/BlankSlate.rdoc).
1 882 posted 15 years ago by narkisr
An example of redo statement in Ruby, redo makes an iteration step repeat itself again (http://www.rubyrailways.com/rubys-most-underused-keyword/).
1 597 posted 15 years ago by narkisr
Simple Outlook automation, the idea is to use this in cygwin to send files without opening the outlook UI, to use it place the code under /bin folder and make it executable with chmod +x.
2 613 posted 15 years ago by narkisr
This is as simple as it gets, basiclly this templates shows you how to mock an object methods to any other piece of code that you like (open objects at its simplest glory).
1 562 posted 15 years ago by narkisr
This is an example of how to search within a Ferret index (based upon http://kasparov.skife.org/blog/src/ruby/ferret.html).
1 678 posted 15 years ago by narkisr
This is a simple example for building a search index with the Ferret library (based upon http://kasparov.skife.org/blog/src/ruby/ferret.html).
1 776 posted 15 years ago by narkisr
This example shows how to release artifacts into Artifactory by using Buildr, the origin of this code is http://groups.google.com/group/buildr-talk/
1 436 posted 15 years ago by narkisr
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 526 posted 16 years ago by narkisr
« Prev 1 Next »