...
01/29/2019
At last years carnival, I and my wife rented an apartment and invited our friends to go to the carnival on the beach.
class Challenge | |
require "json" | |
require "net/http" | |
URL = "https://www.letsrevolutionizetesting.com/challenge.json".freeze | |
MAX_ITERATIONS = 100 | |
def self.call | |
# Initialize id_value with nil to start the loop | |
id_value = nil |
Back-end: | |
Ruby / Rails: | |
Guides: | |
http://guides.rubyonrails.org/ | |
https://api.rubyonrails.org/ | |
https://apidock.com/ruby/ | |
Books (Free): | |
(pt-BR) https://leanpub.com/conhecendo-ruby |
Ruby e Rails | |
Guias: | |
http://guides.rubyonrails.org/ | |
Livros (Free mas vale pagar um café para o autor ;) ): | |
https://leanpub.com/conhecendo-ruby | |
Livros (Pagos): | |
https://leanpub.com/conhecendo-rails |
class TeamMMRUpdater | |
def self.call(*args) | |
new(*args).call | |
end | |
def initialize(team) | |
@team = team | |
end | |
def call |
Terminal: | |
defaults write com.skype.skype AppleLanguages '(pt-BR)' |
def to_pdf | |
bounding_box([0, 770], :width => 520, :height => 40) do | |
stroke_bounds | |
text_box "18. Februar 2013 -", :at => [5, 35] | |
text_box "24. Februar 2013", :at => [5, 20] | |
end | |
move_down 2 | |
header_1 = make_cell(:content => "18 Mo", width: 68) |
## | |
# Fazendo deploy com o capistrano de uma aplicação Rails | |
# usando servidores da Amazon ec2 e unicorn como servidor | |
# o versionamento do ruby no ambiente de produção foi feito | |
# com o rbenv ( https://github.com/sstephenson/rbenv ), o SO | |
# esta com o Centos 5.3 x64 | |
# | |
# Primeiramente é necessario instalar a gem com o comando: | |
# gem install capistrano | |
# ou adicione a linha: gem "capistrano", :group => :development |
/usr/bin/make install-am | |
/bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -g -O2 -c -o zbar/zbar_libzbar_la-jpeg.lo `test -f 'zbar/jpeg.c' || echo './'`zbar/jpeg.c | |
/bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -g -O2 -c -o zbar/processor/zbar_libzbar_la-x.lo `test -f 'zbar/processor/x.c' || echo './'`zbar/processor/x.c | |
libtool: compile: cc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -g -O2 -c zbar/jpeg.c -fno-common -DPIC -o zbar/.libs/zbar_libzbar_la-jpeg.o | |
libtool: compile: cc -DHAVE_CONFIG_H -I. -I./include -I./zbar -I./include -Wall -Wno-parentheses -g -O2 -c zbar/processor/x.c -fno-common -DPIC -o zbar/processor/.libs/zbar_libzbar_la-x.o | |
brew: superenv removed: -Wall -Wno-parentheses -g -O2 | |
brew: superenv removed: -Wall -Wno-parentheses -g -O2 | |
/bin/sh ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I |
sudo ln -s /Applications/TextMate.app/Contents/Resources/mate /bin/mate |