Skip to content

Instantly share code, notes, and snippets.

View marissamarym's full-sized avatar

Marissa Montgomery marissamarym

View GitHub Profile
@marissamarym
marissamarym / commitm.zsh
Last active February 17, 2024 16:58
AI Git Commit Message Generator
commitm() {
local system_prompt='Based on these changes, suggest a concise commit message, ideally less than 5 words:'
local execute_commit=false
local git_output_temp_file=$(mktemp)
local commit_message_temp_file=$(mktemp)
local cleaned_up=false # Flag to indicate whether cleanup has been run
# Check for the execute flag (-e)
if [[ "$1" == "--execute" ]] || [[ "$1" == "-e" ]]; then
execute_commit=true
@marissamarym
marissamarym / Slack Block Kit Cheatsheet
Last active January 16, 2021 22:56
Cheatsheet for the Slack Block Kit Framework
# Slack Block Kit Cheatsheet
This is a cheatsheat for the [Block Kit API](https://api.slack.com/block-kit), great for referencing when wireframing out Slack interactions.
## Values to know
### Surfaces
- [50 blocks per message](https://api.slack.com/reference/block-kit/blocks#:~:text=You%20can%20include%20up%20to,in%20modals%20or%20home%20tabs.)
- [100 blocks per modal or in the home tab](https://api.slack.com/reference/block-kit/blocks#:~:text=You%20can%20include%20up%20to,in%20modals%20or%20home%20tabs.)