I hereby claim:
- I am tiagoefmoraes on github.
- I am tiagoefmoraes (https://keybase.io/tiagoefmoraes) on keybase.
- I have a public key whose fingerprint is 61A3 00D4 8FB5 E0AF EE05 3D7F 597B 4699 75CF 0E23
To claim this, I am signing this object:
def escangalha_tudo obj, com_putaria=false | |
methods = obj.methods | |
#methods = obj.methods - Object.methods | |
methods.sort! | |
methods.each do |method| | |
clone = obj.clone | |
begin | |
puts "Method = #{method} => #{clone.send method}" unless !com_putaria and [:debugger, :breakpoint].include? method | |
rescue Exception => e |
#http://stackoverflow.com/questions/3039650/ruby-bigdecimal-sanity-check-floating-point-newb/3040859#3040859 | |
9999999999999999900000000.0.to_d.to_s # => "10000000000000000000000000.0" | |
'9999999999999999900000000.0'.to_d.to_s # => "9999999999999999900000000.0" | |
(1.0e+25.to_d - 9999999999999999900000000.0.to_d).to_s # => "0.0" | |
('1.0e+25'.to_d - '9999999999999999900000000.0'.to_d).to_s # => "100000000.0" | |
(139.25.to_d + 74.79.to_d).to_s # => "214.04000000000001" | |
('139.25'.to_d + '74.79'.to_d).to_s # => "214.04" |
=>(\S) with => $1 | |
([^<\s])=> with $1 => | |
(?<!:):([\w\d_]+)(\s*)=> with $1: | |
wget http://downloads.sourceforge.net/project/freepascal/Linux/2.6.2/fpc-2.6.2.x86_64-linux.tar | |
tar -xvf fpc-2.6.2.x86_64-linux.tar | |
pushd fpc-2.6.2.x86_64-linux | |
echo 'echo /home/action/fpc' > answers.sh | |
echo 'echo Y' >> answers.sh | |
echo 'echo Y' >> answers.sh | |
echo 'echo Y' >> answers.sh | |
echo 'echo Y' >> answers.sh |
I hereby claim:
To claim this, I am signing this object:
xcode-select --install
#!/bin/bash | |
set -e | |
schema_migrate="db/migrate/20141107164010_schema.rb" | |
echo Running current migrations... | |
rm db/migrate/* | |
git checkout db/migrate/ | |
rm -f $schema_migrate | |
dropdb -U postgres bedel_test |
def self.join(first, last) | |
if first.is_a?(Range) && last.is_a?(Range) | |
first.first..last.last | |
elsif first.is_a?(Range) | |
first.first..last | |
elsif first == last | |
first | |
else | |
first..last | |
end |
class BigDecimal | |
def inspect | |
format("#<BigDecimal: %s>", to_s('F')) | |
end | |
end |