This file contains hidden or 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
/* set my own variables */ | |
.theme-dark { | |
/* ==highlights== */ | |
--text-highlight-bg: darkorchid; | |
/* vertical lines in lists */ | |
--indentation-guide-color: cyan; | |
/* active sidebar item */ | |
--nav-item-background-active: #e67e00; | |
/* don't make code smaller than normal text */ |
This file contains hidden or 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
# This code snippet shows one way we could use gpt inside a Jinja2 template | |
# to hack-around the context limitations. Have fun! And remember, the ART is the prompt... | |
# MAKE SURE you modify the 'set titulo' (titulo is title in spanish) | |
# Author: Arturo "Buanzo" Busleiman <[email protected]> | |
import os | |
import openai | |
import json | |
from jinja2 import Template |
This file contains hidden or 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
# This Python script was tested with Python 3.11. | |
# It requires the async-graph-data-flow package plus several other third-party dependencies. | |
# Before running this script, we recommend installing all these dependencies with pip: | |
# pip install async-graph-data-flow==1.1.0 aiocsv==1.2.3 aiofile==3.8.1 aiohttp==3.8.4 | |
import aiocsv | |
import aiofile | |
import aiohttp | |
from async_graph_data_flow import AsyncGraph, AsyncExecutor |
This file contains hidden or 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
# STEP 1: Load | |
# Load documents using LangChain's DocumentLoaders | |
# This is from https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/csv.html | |
from langchain.document_loaders.csv_loader import CSVLoader | |
loader = CSVLoader(file_path='./example_data/mlb_teams_2012.csv') | |
data = loader.load() | |
This file contains hidden or 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
on letsWatchThatStinkingFolder () { | |
«Changes | |
«3/7/23; 11:55:58 AM by DW | |
«Created. | |
local (prefix = "chat-gpt-"); | |
local (sourcefolder = "Macintosh HD:Users:davewiner:Downloads:"); | |
local (destfolder = user.prefs.publicfolder + "chatgpt:"); | |
fileloop (f in sourcefolder) { | |
local (fname = file.filefrompath (f)); | |
if fname beginswith prefix { |
This file contains hidden or 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
Stable Diffusion is an AI art generation model similar to DALLE-2. | |
Here are some prompts for generating art with Stable Diffusion. | |
Example: | |
- A ghostly apparition drifting through a haunted mansion's grand ballroom, illuminated by flickering candlelight. Eerie, ethereal, moody lighting. | |
- portait of a homer simpson archer shooting arrow at forest monster, front game card, drark, marvel comics, dark, smooth | |
- pirate, deep focus, fantasy, matte, sharp focus | |
- red dead redemption 2, cinematic view, epic sky, detailed, low angle, high detail, warm lighting, volumetric, godrays, vivid, beautiful | |
- a fantasy style portrait painting of rachel lane / alison brie hybrid in the style of francois boucher oil painting, rpg portrait |
This file contains hidden or 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
{ | |
"W": 512, | |
"H": 512, | |
"restore_faces": false, | |
"tiling": false, | |
"enable_hr": false, | |
"firstphase_width": 0, | |
"firstphase_height": 0, | |
"seed": 2329578955, | |
"sampler": "Euler a", |
This file contains hidden or 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
#! /usr/bin/env python3 | |
# <xbar.title>Echo Shortcut Notifier</xbar.title> | |
# <xbar.version>v1.01</xbar.version> | |
# <xbar.author>Jason Snell</xbar.author> | |
# <xbar.author.github>jasonsnell</xbar.author.github> | |
# <xbar.desc>Display status from Shortcuts.</xbar.desc> | |
import os | |
import datetime |