Welcome To Snipplr


Everyone's Recent Ruby Snippets



Connect to three sites using threads and without using them. Fetch the response. Measure the benchmark.
0 1063 posted 14 years ago by Shamaoke
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 2366 posted 14 years ago by madc
0 1285 posted 14 years ago by stancox
is for easy pay
0 1222 posted 14 years ago by andresbravog
0 1181 posted 14 years ago by Shamaoke
0 2145 posted 14 years ago by Shamaoke
Digs through the exim log and gives a count for every email address that's generating SMTP errors
0 1164 posted 14 years ago by beaknit
Written by Joshua W. Frappier
0 1117 posted 14 years ago by KernelPanic
Ruby / Rails - A refresher reference for me because I forget how to do this... create project generate scaffold scaffolding migrate db start server
0 1838 posted 14 years ago by brandonjp
links (full <a href="#"> element) to Show Edit Destroy Delete records in view *.erb must be in the record loop:
0 2950 posted 14 years ago by brandonjp
if then statement... in a view file *.html.erb:
0 2351 posted 14 years ago by brandonjp
0 1089 posted 14 years ago by ringingEars
Place script into Automator (select "Run Shell Script" choose /usr/bin/ruby as the shell). You'll need to create a bit.ly account which will give you your API key for authentication.
0 1177 posted 14 years ago by insanedreamer
Call a block if it's given otherwise call a method.
0 1238 posted 14 years ago by Shamaoke
An example which illustrates the ways of extending a class by class methods.
0 1406 posted 14 years ago by Shamaoke
ruby mcm.rb >mcm.sh chmod +x mcm.sh ./mcm.sh
0 1416 posted 14 years ago by hafthor
0 1348 posted 14 years ago by lukelat
It's necessary to do this for each of automatic_attrs, override_attrs, normal_attrs and default_attrs
0 1380 posted 15 years ago by therobot
0 1321 posted 15 years ago by alexkojin
0 1624 posted 15 years ago by insanedreamer
This regular expression used in Ruby will extract the characters between single or multi-character delimiters. It helps when you have strange delimiters such as \":delimeter1: text I want to grab goes here :delimiter2:\"
0 1540 posted 15 years ago by webonomic