Welcome To Snipplr
You searched for: http
Everyone's Recent Ruby Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
3661
posted 13 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
2367
posted 14 years ago by madc
This Ruby script generates the [Gnome Terminals For Rails script](http://snipplr.com/view/32227/gnome-terminals-for-rails/ "Gnome Terminals For Rails").
0
1014
posted 15 years ago by draq
Credit: http://pragmatig.wordpress.com/2009/04/14/recursive-symbolize_keys/
0
1185
posted 15 years ago by nate63179
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
1685
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
1289
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
1839
posted 16 years ago by inkdeep
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
1432
posted 17 years ago by charlesroper
https://www.chrisjmendez.com/2008/06/21/ruby-mixing-in-a-module-immediately-after-an-objects-singleton-class/
2
1415
posted 17 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
1726
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
1319
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
1495
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
1001
posted 17 years ago by narkisr
Creates a SSL connection with delicious API using the HTTP basic authentication.
4
1465
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
1206
posted 17 years ago by narkisr
https://www.chrisjmendez.com/2007/10/22/ruby-simple-example-of-threading/
3
3012
posted 18 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/21/ruby-how-to-iterate-through-an-array/
3
2889
posted 18 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/21/converting-an-array-into-yaml-loading-yaml-into-an-array/
1
2759
posted 18 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/15/ruby-parse-delicious-rss-feeds/
2
1807
posted 18 years ago by chrisaiv
https://www.chrisjmendez.com/2017/10/15/ruby-web-2-0-name-generator/
1
1087
posted 18 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
1449
posted 18 years ago by charlesroper
Adapted from http://journal.mychores.co.uk/articles/2007/01/21/updating-twitter-from-ruby-rails
2
1440
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
3004
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
2504
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
2701
posted 18 years ago by gtcaz