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 |
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 |
#!/bin/bash | |
print_gems() { | |
awk '/([[:alnum:]_]+) \(/{ print $1 }' Gemfile.lock | sort -u | |
} | |
count() { | |
grep -c ^ | |
} |
brew install 'nvm' | |
NODE_VERSION="4.4.3" | |
if ! grep -qs 'source $(brew --prefix nvm)/nvm.sh' ~/.bash_profile; then | |
printf 'export PATH="$PATH:/usr/local/lib/node_modules"\n' >> ~/.bash_profile | |
printf 'source $(brew --prefix nvm)/nvm.sh\n' >> ~/.bash_profile | |
fi | |
source $(brew --prefix nvm)/nvm.sh | |
nvm install "$NODE_VERSION" |
require 'cuba' | |
class MyApp < Cuba | |
define do | |
on root do | |
res.write "it works!" | |
end | |
end |
# Use KeyValue to store globally unique data | |
KeyValue.set('api_key', '123') # => true | |
KeyValue.get('api_key') # => '123' | |
# You can use the alternate syntax: | |
KeyValue['api_key'] = '123' # => true | |
KeyValue['api_key'] # => '123' |
#!/usr/bin/env ruby | |
# Validates that you don't commit forbidden keywords to the repo | |
# You can skip this checking with 'git commit --no-verify' | |
exit 0 if ARGV.include?('--no-verify') | |
# Update this list with your own forbidden keywords | |
KEYWORDS = %w(binding.pry console.log debugger) | |
def red(text) "\033[31m#{text}\033[0m"; end |
#!/bin/bash | |
grep -o -E "([a-z0-9_-]+) \(" Gemfile.lock | sed -E 's/ \(//' | sort | uniq |
Para recategorizarte en el Monotributo, la aplicación de AFIP da error de Javascript por todos lados. A menos que entres con Internet Explorer...
Para hacer el trámite en Chrome, Firefox o cualquier browser decente: