Use gem install bunchcli
to install, then run bunch -h
for a list of commands.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⌨️ Official Cursor-Resting Area: | |
╭―――――――╮ | |
│ >_< │ | |
╰―――――――╯ |
- Make sure you have your OpenAI API key set as an environment variable (OPENAI_API_KEY)
- Set up the pre-commit message prep hook bu adding the other two files here in the
./git/hooks
directory.
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.
# ---