Skip to content

Instantly share code, notes, and snippets.

View stjhimy's full-sized avatar

Jhimy Fernandes Villar stjhimy

View GitHub Profile
@stjhimy
stjhimy / Phoenix esbuild with Tailwind and Fontawesome
Created August 3, 2022 11:04 — forked from ks2211/Phoenix esbuild with Tailwind and Fontawesome
Phoenix with esbuild, fortawesome, and tailwindcss
Phoenix esbuild with Tailwind+Fontawesome
defmodule TaggingImage do
require Axon
require Logger
alias Tagging.Preprocessing
alias Tagging.Postprocessing
alias Evision, as: OpenCV
EXLA.set_preferred_defn_options([:tpu, :cuda, :rocm, :host])
@stjhimy
stjhimy / rename_phoenix_project.sh
Created July 4, 2023 17:07 — forked from vrymel/rename_phoenix_project.sh
Command steps to rename a Phoenix project
# tested on macOS 10.12.4
# based on https://elixirforum.com/t/how-to-change-a-phoenix-project-name-smoothly/1217/6
# replace values as necessary
current_otp="hello_phoenix"
current_name="HelloPhoenix"
new_otp=""
new_name=""
git grep -l $current_otp | xargs sed -i '' -e 's/'$current_otp'/'$new_otp'/g'