chrisaiv


Member since 01/16/2007

Name: Chris

chrisaiv

Location: Los Angeles

Website: http://www.chrisjmendez.com

Product manager, Scrum master and software engineer.

28 snippets

1356 profile views

41 Comment(s) Posted

View their favorites

Profile

Achievement

You have not received any achievements.

chrisaiv's Recent SnippetsTagged ruby



« Prev 1 Next »
Simple test showing how to make a request to Spotify's API.
2 217 posted 8 years ago by chrisaiv
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 155 posted 8 years ago by chrisaiv
If you need to do any sort of screen capturing using FFMPEG, you might need this one day
0 170 posted 8 years ago by chrisaiv
I use this code snippet all the time. It allows me to parse a CSV file and transform it into an XML file.
0 228 posted 9 years ago by chrisaiv
IceCast server's sometimes offer meta-data information on a particular piece. Here's an example of a data scrape from Classical KUSC
0 90 posted 9 years ago by chrisaiv
This script is a nice balance between validating data and speed.
1 134 posted 9 years ago by chrisaiv
Easy way to populate a drop-down menu
3 130 posted 10 years ago by chrisaiv
Don't forget to use require 'directory/name_of_class'
0 156 posted 10 years ago by chrisaiv
0 105 posted 10 years ago by chrisaiv
Ruby provides a platform independent way of displaying file paths. Here are a few common ways to show absolute and relative paths.
0 111 posted 10 years ago by chrisaiv
I had an XML file that I needed to convert to CSV. In order to make things easier for myself, I used a pipe | symbol instead of a comma so that there would be no parsing errors later. I also ended up writing the file to a Txt file and importing it...
1 212 posted 10 years ago by chrisaiv
This shows how we can find objects inside code blocks (aka data sets).
0 159 posted 10 years ago by chrisaiv
1 97 posted 11 years ago by chrisaiv
I needed a quick way to unescape a URL Encoded string. I found 2 chill ways
2 105 posted 11 years ago by chrisaiv
http://www.sitepoint.com/forums/showthread.php?t=552741
1 104 posted 11 years ago by chrisaiv
https://www.chrisjmendez.com/2008/06/21/ruby-mixing-in-a-module-immediately-after-an-objects-singleton-class/
2 114 posted 12 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 160 posted 12 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/22/ruby-simple-example-of-threading/
3 220 posted 12 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/21/ruby-how-to-iterate-through-an-array/
3 213 posted 12 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/21/converting-an-array-into-yaml-loading-yaml-into-an-array/
1 216 posted 12 years ago by chrisaiv
There are many functions available for Time, Month, Day, and Year. Below are a few examples I use frequently
1 161 posted 12 years ago by chrisaiv
Download the Credit Card Library from Lucas Carlson user$ sudo gem install creditcard
6 164 posted 12 years ago by chrisaiv
First things First you need to install this ruby gem user$ sudo gem install ezcrypto
2 107 posted 12 years ago by chrisaiv
Before you save a password to a database, it may make sense to encrypt it. That way when you do some user authentication, you can compare the users submitted password to the one on the database.
1 153 posted 12 years ago by chrisaiv
https://www.chrisjmendez.com/2007/10/15/ruby-parse-delicious-rss-feeds/
2 110 posted 12 years ago by chrisaiv
https://www.chrisjmendez.com/2017/10/15/ruby-web-2-0-name-generator/
1 98 posted 12 years ago by chrisaiv
« Prev 1 Next »