En la página oficial de Ruby sugieren las siguientes opciones para instalar ruby:
-
Windows: RubyInstaller
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -m 1 -i $1 | cut -d" " -f1`; cvlc $r 2> /dev/null; }; __radio' | |
# podria utilizarse mplayer en vez de vlc | |
AMs Nacionales | |
http://200.68.81.65:8000/am530 Radio Madre 530 | |
http://www.servidorstreaming1.com:9962/; Radio Colonia 550 | |
http://195.154.182.222:25223/live.mp3 Radio Argentina 570 | |
http://18683.live.streamtheworld.com/CONTINENTAL_SC Continental 590 | |
http://38.107.243.197:9639/live Rivadavia 630 |
En la página oficial de Ruby sugieren las siguientes opciones para instalar ruby:
Windows: RubyInstaller
require 'date' | |
class ShortDate | |
attr_reader :month, :day | |
include Comparable | |
def initialize(string) | |
date = Date.strptime(string, '%m/%d') | |
@month, @day = date.month, date.day | |
rescue StandardError |