You can import this Gist directly into your LiveBook instance.
Mix.install([:jason, :plug_cowboy, :phoenix, :phoenix_html, :phoenix_live_view])
defmodule DateTimeGenerators do | |
use ExUnitProperties | |
@time_zones ["Etc/UTC"] | |
def date do | |
gen all year <- integer(1970..2050), | |
month <- integer(1..12), | |
day <- integer(1..31), | |
match?({:ok, _}, Date.from_erl({year, month, day})) do |
Remove rbenv and any rubies, gems etc.:
$ rm -rf ~/.rbenv
Uninstall rbenv if installed via Homebrew
$ brew uninstall rbenv
Remove references to rbenv in ~/.bash_profile
etc.
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>Stripe Getting Started Form</title> | |
<!-- The required Stripe lib --> | |
<script type="text/javascript" src="https://js.stripe.com/v2/"></script> | |
<!-- jQuery is used only for this example; it isn't required to use Stripe --> |
class BigDecimal | |
def inspect | |
format("#<BigDecimal: %s>", to_s('F')) | |
end | |
end |
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 |