Skip to content

Instantly share code, notes, and snippets.

View kjaymiller's full-sized avatar
🤔

Jay Miller kjaymiller

🤔
View GitHub Profile
@crazy4pi314
crazy4pi314 / README.md
Last active February 15, 2023 18:27
OpenAI assisted git commit msg

How to use:

  1. Make sure you have your OpenAI API key set as an environment variable (OPENAI_API_KEY)
  2. Set up the pre-commit message prep hook bu adding the other two files here in the ./git/hooksdirectory.

Test using it by staging some changes to commit and then running git commit in the command line. The file it pops up for you to edit now should have the suggested summary of the changes from the OpenAI api commented out like this:

# Here is a suggested commit message from code-davinci-002.
# ---
@merlinmann
merlinmann / Official Cursor-Resting Area.txt
Last active May 16, 2024 22:59
Paste this into your Google Doc for a place to store your cursor.
⌨️ Official Cursor-Resting Area:
╭―――――――╮
│ >_< │
╰―――――――╯

This has been replaced by a gem

Use gem install bunchcli to install, then run bunch -h for a list of commands.

"""
Takes files in a directory and strips out the html
created: 20160503
by: Kevin 'Jay' Miller
kjaymiller@gmail.com
Place this
"""
from os import listdir
@pklaus
pklaus / print_contacts_from_address-book.py
Created June 16, 2011 18:24
How to access the Mac OS X Address Book from Python: <http://www.programmish.com/?p=26>
import objc
import AddressBook as ab
import pprint as pp
def pythonize(objc_obj):
if isinstance(objc_obj, objc.pyobjc_unicode):
return unicode(objc_obj)
elif isinstance(objc_obj, ab.NSDate):
return objc_obj.description()