Skip to content

Instantly share code, notes, and snippets.

View michaelterryio's full-sized avatar
💯

michaelterryio

💯
  • Bruce Clay, Inc
  • Ventura, CA
View GitHub Profile
@LostKobrakai
LostKobrakai / form_live.ex
Last active June 19, 2024 02:18
Phoenix LiveView form with nested embeds and add/delete buttons
defmodule NestedWeb.FormLive do
use NestedWeb, :live_view
require Logger
defmodule Form do
use Ecto.Schema
import Ecto.Changeset
embedded_schema do
field :name, :string
@unsquare
unsquare / Change Case of Clipboard.scpt
Created June 9, 2021 18:39
AppleScript to change case of clipboard text to uppercase or lowercase
on changeCaseOfText(theText, theCaseToSwitchTo)
if theCaseToSwitchTo contains "Lowercase" then
set theComparisonCharacters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
set theSourceCharacters to "abcdefghijklmnopqrstuvwxyz"
else if theCaseToSwitchTo contains "Uppercase" then
set theComparisonCharacters to "abcdefghijklmnopqrstuvwxyz"
set theSourceCharacters to "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
else
return theText
end if
@DrSensor
DrSensor / Advanced Markdown Tricks.md
Last active March 30, 2024 22:51
Advanced Markdown Tricks

Repository

What Will I Learn?

In general, you will learn some markdown tricks combined with standard HTML tags. In more details what you will learn:

  • Hide-show content
  • Writing codeblocks inside codeblocks
  • Combining and using italic, bold, superscript, subscript, and/or strikethrough
  • Quoting long sentence (using nested blockquotes)
@longlostnick
longlostnick / Dockerfile
Created August 6, 2017 21:51 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world