Welcome To Snipplr


You searched for: http

Everyone's Recent Ruby Snippets



« Prev 1 2
Use this Gem to programmatically take screenshots of websites with this completely open source and free library. We have also provided easy to follow online tutorials and sample applications to help you set up GrabzIt as quickly as possible. First...
1 1391 posted 12 years ago by Maximus1983
Clientside script for a personal DynDNS service. Works together with a server-side script written in php [ http://snipplr.com/view/55482/own-dyndns-service-serverside-script ] . You may want to set up a cron jop to run this script every x minutes.
0 1082 posted 13 years ago by madc
0 884 posted 14 years ago by Shamaoke
This Ruby script generates the [Gnome Terminals For Rails script](http://snipplr.com/view/32227/gnome-terminals-for-rails/ "Gnome Terminals For Rails").
0 744 posted 15 years ago by draq
Credit: http://pragmatig.wordpress.com/2009/04/14/recursive-symbolize_keys/
0 876 posted 15 years ago by nate63179
Sniffing http request & response using pcap in Ruby.
2 1034 posted 15 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 1315 posted 16 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 977 posted 16 years ago by narkisr
I had a directory tree with around 4000 pdf files and I needed a page count - so I semi-rolled this. I swiped the counter code from the gem README: http://github.com/yob/pdf-reader/tree/master It could be more contained - as is I run it from irb:...
1 1331 posted 16 years ago by inkdeep
http://www.sitepoint.com/forums/showthread.php?t=552741
1 933 posted 16 years ago by chrisaiv
2 978 posted 16 years ago by pmd
1. Make sure the following environment variable is set: WinXP: HOME=C:\Documents and Settings\*username* Vista: HOME=C:\Users\*username* 2. Create an .irbrc file in %HOME%: $ cd %HOME% $ touch .irbrc If you don't have...
1 1048 posted 16 years ago by charlesroper
https://www.chrisjmendez.com/2008/06/21/ruby-mixing-in-a-module-immediately-after-an-objects-singleton-class/
2 994 posted 16 years ago by chrisaiv
https://www.chrisjmendez.com/2008/06/04/ruby-open-a-text-file-and-re-write-its-contents-into-a-new-text-file/
1 1198 posted 17 years ago by chrisaiv
This is an example of how to search within a Ferret index (based upon http://kasparov.skife.org/blog/src/ruby/ferret.html).
1 1021 posted 17 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 1137 posted 17 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 751 posted 17 years ago by narkisr
Creates a SSL connection with delicious API using the HTTP basic authentication.
4 1116 posted 17 years ago by pmd
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 873 posted 17 years ago by narkisr
https://www.chrisjmendez.com/2007/10/22/ruby-simple-example-of-threading/
3 1611 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/21/ruby-how-to-iterate-through-an-array/
3 1478 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/21/converting-an-array-into-yaml-loading-yaml-into-an-array/
1 1448 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/15/ruby-parse-delicious-rss-feeds/
2 1411 posted 17 years ago by chrisaiv
https://www.chrisjmendez.com/2017/10/15/ruby-web-2-0-name-generator/
1 773 posted 17 years ago by chrisaiv
The escape_javascript funtion is taken from Rails (http://rails.rubyonrails.com/classes/ActionView/Helpers/JavaScriptHelper.html#M000633). Most of the work on this was done by pnomolos and n00ge on the E Text Editor forums.
1 1010 posted 17 years ago by charlesroper
Adapted from http://journal.mychores.co.uk/articles/2007/01/21/updating-twitter-from-ruby-rails
2 993 posted 18 years ago by gtcaz
This replaces the PHP-based function in the HTML bundle. You need to add two files to your bundle's Support/lib folder (create the directories if they're not present): http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/vend...
6 1598 posted 18 years ago by gtcaz
Alternative bundle command for e (http://www.e-texteditor.com) or TextMate. Replace YOUR_API_KEY_HERE with a valid API key -- you can find it on your Settings page (http://snipplr.com/settings/). Changed the command to allow selection of langua...
10 1199 posted 18 years ago by gtcaz
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 1279 posted 18 years ago by gtcaz
« Prev 1 2