Welcome To Snipplr


Everyone's Recent Ruby Snippets



« Prev 1 2 3 4 5 ... 12
30 fibonacci numbers without using numbers in Ruby (64 characters)
0 156 posted 5 years ago by adino
This technical tip shows how developers can convert email messages to other formats like EML, MSG & MHT in cloud using ruby language.
0 179 posted 6 years ago by johansonkatherine
This code sample shows how Ruby developers can create PDF file from HTML using Aspose.Pdf for Cloud API in their REST applications.
0 175 posted 6 years ago by johansonkatherine
I had a spreadsheet with a ton of data on it that I wanted in my seeds file. Using example columns in your database titled db_column1, db_column2, db_column3. Place your .xls file into your public folder and run 'gem install roo'
0 118 posted 6 years ago by asalgan
To be improved to work with fasterCSV
0 157 posted 6 years ago by legrandkay
Ejemplo de Carga de Página con Nokogiri
0 102 posted 6 years ago by danielousky
If you're using Rails and want to make this a global function, drop this into your application_controller and call it as a function. Example: # get_string_between("hellomyfriendmoto", 'o', 'm') # > myfriend
0 218 posted 7 years ago by joshmn
0 117 posted 7 years ago by zhaowu
Scales a number from a given range into a specific range, as explained [in this Stack Overflow](http://stackoverflow.com/questions/5294955/how-to-scale-down-a-range-of-numbers-with-a-known-min-and-max-value) post. Just call it, for example like:...
0 180 posted 7 years ago by slhck
= Rake Task for Rails * name: name of the task * desc: description of the task
0 101 posted 7 years ago by cliffbraton
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 184 posted 7 years ago by Maximus1983
Simple test showing how to make a request to Spotify's API.
2 165 posted 8 years ago by chrisaiv
Takes an image (path or url) and extracts the 7 most common colors and returns their hex values.
0 147 posted 8 years ago by kellishaver
Checks to make sure the file is a valid image file, checks max file size, and directory write permissions, requires 'fileutils' gem.
2 199 posted 8 years ago by kellishaver
An example method for fetching remote JSON data in Ruby.
2 157 posted 8 years ago by vestimir
The Blackberry AppWorld portal allows you to schedule reports which are delivered as CSV.zip files. Although the CSV file offers a lot of detail about operating system and date of download, most of the time I just want to know which users downloaded...
0 127 posted 8 years ago by chrisaiv
Works fine for MacRuby applications
0 137 posted 8 years ago by iloveitaly
If you need to do any sort of screen capturing using FFMPEG, you might need this one day
0 139 posted 8 years ago by chrisaiv
Shows how to read/write fully formatted CSV with Ruby
1 217 posted 8 years ago by m1b
Do a remote search for all gems containing the word 'pdf' with detailed descriptions and view results in textmate requires `rubygems-mate` gem
0 187 posted 8 years ago by inkdeep
0 118 posted 9 years ago by inkdeep
0 107 posted 9 years ago by inkdeep
asdads
0 153 posted 9 years ago by solhelios
para sumar tres numbres
0 106 posted 9 years ago by solhelios
pasa euros a pesetas
0 122 posted 9 years ago by solhelios
A program fronm controlate your programs with dea age
0 124 posted 9 years ago by solhelios
I use this code snippet all the time. It allows me to parse a CSV file and transform it into an XML file.
0 187 posted 9 years ago by chrisaiv
Programa de una calculadora en ruby ademas de contraseña y usuario
0 120 posted 9 years ago by solhelios
« Prev 1 2 3 4 5 ... 12