Welcome To Snipplr
Everyone's Recent Ruby Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This command allows you to browse your snippet collection on Snipplr and retrieve them into e.  Requires the installation of the wxCocoaDialog exe in the /Support/bin subdirectory.
Replace YOUR_API_KEY_HERE with the API key -- you can find it on y...
        
        
        
            6 
        
        
            2550 
        
                    posted 18 years ago by gtcaz
            Requires aspell and wxCocoaDialog.
Now checks all of your selection for misspellings.
Known issues: 
* e doesn't see contractions as a "word", so you must select things like can't, won't, etc. or the command won't see the whole word.
* Dupl...
        
        
        
            2 
        
        
            1451 
        
                    posted 18 years ago by gtcaz
            This is an example of how to use the wxCocoaDialog dropdown widget from Ruby.
        
        
        
            2 
        
        
            1457 
        
                    posted 18 years ago by gtcaz
            This is an example of how to use the progressbar widget from Alexander Stigsen's new wxCocoaDialog, an open source port of CocoaDialog to Win32 using the ExWidgets toolkit.  This is a companion project to his e Text Editor.
        
        
        
            2 
        
        
            1085 
        
                    posted 18 years ago by gtcaz
            used to remove unnecessary duplication of code. Code is from Jamis Buck (http://weblog.jamisbuck.org/2007/1/24/object-with_options)
        
        
        
            1 
        
        
            1227 
        
                    posted 18 years ago by andyh
            A custom assertion that will allow you to pass a block to find the difference between two values.
        
        
        
            1 
        
        
            1049 
        
                    posted 18 years ago by vanne
            Useful for when you need to do a find and map specific results to an array for use later
        
        
        
            1 
        
        
            1247 
        
                    posted 18 years ago by vanne
            This is useful for using ActiveRecord validations without the ActiveRecord DB dependencies, this snippet is meant to be used with Textmate... create this in models/name_of_your_model to use.
        
        
        
            4 
        
        
            2653 
        
                    posted 18 years ago by vanne
            This allows you to turn off ajax requests application wide, so that you don't have to do render :layout => false in every controller that needs it.
        
        
        
            1 
        
        
            1543 
        
                    posted 18 years ago by vanne
            Just name it s3cp (or similar), chmod it, and then you can do stuff like:
s3cp ~/somefile.whatever bucket
        
        
        
            1 
        
        
            1333 
        
                    posted 18 years ago by sudarkoff
            fixture_file_upload is another nifty Rails testing feature. It allows you to create "MIME-encoded content that would normally be uploaded by a browser input field." (Part in quotes straight from Agile Web Development with Rails, v2). Put your files t...
        
        
        
            3 
        
        
            3219 
        
                    posted 18 years ago by tjstankus
            Rails builds on the standard Ruby observer, so you can too.
Originally found at http://rails.techno-weenie.net/forums/1/topics/672?page=6,
so don't give me any credit ;)
        
        
        
            2 
        
        
            1270 
        
                    posted 18 years ago by stuckinrealtime
            This snippet is Polish-language specific. This class expands a number (Fixnum or Bignum) into a string with a textual representation of that number in Polish language. Currency suffix supported.
Example: 456 -> "four hundred fifty six" (but in Polis...
        
        
        
            0 
        
        
            857 
        
                    posted 18 years ago by komor
            
