Skip to content

Instantly share code, notes, and snippets.

View Yankzy's full-sized avatar

Yankuba Kuyateh Yankzy

View GitHub Profile
@Yankzy
Yankzy / add_to_zshrc.sh
Created August 26, 2024 11:37 — forked from karpathy/add_to_zshrc.sh
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {
@Yankzy
Yankzy / generate_human_rights_complaint.py
Created July 28, 2024 18:43 — forked from mdear/generate_human_rights_complaint.py
Inception-based design for the AI-assisted creation of a written human rights complaint
#! /bin/env python3
""" A script to generate an Ontario Human Rights application form using GPT-4o API.
Authorship Credits: ChatGpt: 60%, Myles Dear <mdear@paracleteadvocacy.ca>: 40%
Date last modified: Jul 11, 2024
"""
"""
Initial prompt to generate script :
@Yankzy
Yankzy / dict_merge.py
Created March 10, 2022 22:37 — forked from angstwad/dict_merge.py
Recursive dictionary merge in Python
# Recursive dictionary merge
# Copyright (C) 2016 Paul Durivage <pauldurivage+github@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of