Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
Mix.install([:benchee]) | |
defmodule Test do | |
def benchmark() do | |
vector1 = Enum.map(1..1536, fn _ -> :rand.uniform() end) | |
vector2 = Enum.map(1..1536, fn _ -> :rand.uniform() end) | |
Benchee.run( | |
%{ | |
"dot_product_enum" => fn -> dot_product_enum(vector1, vector2) end, |
Verifying my Blockstack ID is secured with the address 1FaMJoHHkn1WiHDjdAwf83myWrwHY3661d https://explorer.blockstack.org/address/1FaMJoHHkn1WiHDjdAwf83myWrwHY3661d |
john = "John Lennon" | |
ringo = "Ringo Starr" | |
paul = "Paul McCartney" | |
george = "George Harrison" | |
beatles = [john, ringo, paul, george] | |
sorted_beatles = beatles.sort | |
puts sorted_beatles |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
I hereby claim:
To claim this, I am signing this object:
b = {"foo" => 100, "bar" => 300, "zaz" => 5} | |
c = {"foo" => 200, "bar" => 8} | |
a = [b, c] | |
# ??? = {"foo" => 300, "bar" => 308, "zaz" = 5} | |
# Solução caffo 1 | |
response = Hash.new(0) | |
a.each {|i| i.each {|key, val| response[key] += val} } |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
### Default script | |
$if2(%albumartist%,%artist%)/$if($ne(%albumartist%,),%album%/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title% | |
### My script | |
$rreplace($replace($if2(%albumartist%,%artist%),...,...),\\.\$,$noop(.))/$if($if2(%originaldate%,%date%),[$left($if2(%originaldate%,%date%),4)] ,)$rreplace($replace(%album%,...,...),\\.\$,$noop(.))$if($gt(%totaldiscs%,1),\, CD $num(%discnumber%,1),)$if($gt($left(%date%,4),$left($if2(%originaldate%,%date%),4)), [Released %date%],)/$num(%tracknumber%,2) - $replace(%title%,...,...) |
[ | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{ "keys": ["super+shift+\\"], "command": "reveal_in_side_bar"}, | |
{ "keys": ["super+shift+c"], | |
"command": "sublime_highlight", | |
"args": { | |
"target": "clipboard", | |
"output_type": "rtf" | |
} |