Skip to content

Instantly share code, notes, and snippets.

View george124816's full-sized avatar

George Rodrigues george124816

View GitHub Profile
# interactive command
gpg2 --full-generate-key
# get keyID
gpg2 --list-secret-keys --keyid-format=long
att .gitconfig with KEYID
`git config --global user.signingkey 3AA5C34371567BD2`
@george124816
george124816 / sqrt.ex
Created June 5, 2021 13:28
Square Roots by Newton's Method
defmodule Sqrt do
def sqrtiter(guess, x) do
if (goodenought?(guess, x)) do
guess
else
guess
|> improve(x)
|> sqrtiter(x)
end