Tag: ruby

0

How to use imagemagick in Ruby

Using imagemagick is quite straightforward, here is how: 12sudo apt-get install libmagickwand-dev imagemagickgem install rmagick The Ruby code: 1234567891011121314151617181920212223242526272829303132

0

Parse Excel spreadsheet in Ruby

First, install this gem: Roo 1gem install roo Then, use classes/methods provided in Roo to access Excel data, e.g. there is my example to iterate Excel spreadsheet data. 12345678910111213141516171819

0

Ruby tutorials - rss

Install gem1gem install feedjira Parse RSS12345678910111213141516require 'feedjira'feedurl = 'https://www.yuxifan.com/atom.xml'feed = Feedjira::Feed.fetch_and_parse feedurlputs feed.titleputs feed.ur

0

Ruby gem command

Install Ruby gems from Github source repositoryTo to this, you have to install a gem called specific_install first. 12gem install specific_installgem specific_install https://github.com/XXX/YYY.git [

0

Ruby tutorials - json

Generate json data12345678910111213require 'json'doc1 = JSON 'test1' => 12doc2 = JSON['test2' => 12]puts doc1puts doc2doc3 = JSON.generate [22, 23, {"a"=>55}, false, true, nil, 1..