This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Thing do | |
# get the full qualified path to the README. | |
@readme_path Path.join(__DIR__, "../README.md") | |
# ensure the module recompiles if the README changes | |
# NOTE: @external_resource requires a fully qualified path. | |
@external_resource @readme_path | |
# read the README into the moduledoc | |
@moduledoc File.read!(@readme_path) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Uninstall Script | |
if [ "${USER}" != "root" ]; then | |
echo "$0 must be run as root!" | |
exit 2 | |
fi | |
while true; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/W/z/playground $ zig version | |
0.6.0+342ba960f | |
~/W/z/playground $ zig build-exe tfidf.zig | |
~/W/z/playground $ ./tfidf | |
word "the" initialized to count 1 | |
after word "the" map count is 1 | |
word "quick" initialized to count 1 | |
after word "quick" map count is 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(1)> t1 = Nx.tensor([3, 4, 5]) | |
#Nx.Tensor< | |
s64[3] | |
[3, 4, 5] | |
> | |
iex(2)> Rank1.at(t1, 0) | |
#Nx.Tensor< | |
s64 | |
3 | |
> |
OlderNewer