Skip to content

Instantly share code, notes, and snippets.

View lukaszhanusik's full-sized avatar
✨👁️🖤👁️✨ ⚡️

Lukasz Hanusik lukaszhanusik

✨👁️🖤👁️✨ ⚡️
View GitHub Profile
@xavdid
xavdid / custom.css
Created April 23, 2023 06:20
Obsidian CSS Customizations
/* 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 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
@jacksonlee-civis
jacksonlee-civis / breweries_us_async.py
Created March 30, 2023 00:33
Sample code using the async-graph-data-flow package
# 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
# 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()
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 {
@bluelovers
bluelovers / ChatGPT Stable Diffusion prompts generator.txt
Last active June 24, 2025 08:29
using ChatGPT as Stable Diffusion prompts generator
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
@kabachuha
kabachuha / deforum_settings.txt
Created January 28, 2023 16:30
Deforum insertion + interpolation
{
"W": 512,
"H": 512,
"restore_faces": false,
"tiling": false,
"enable_hr": false,
"firstphase_width": 0,
"firstphase_height": 0,
"seed": 2329578955,
"sampler": "Euler a",
@jasonsnell
jasonsnell / echo.1m.py
Last active February 4, 2023 08:02
Echo Shortcut Notifier
#! /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
@jgeusebroek
jgeusebroek / readwise_obsidian_export.md
Created December 29, 2022 20:40
Readwise Obsidian export templates

File name

{{last_highlighted_date |date('Y-m-d')}} {{title|replace(""","")|replace(""","")|replace("'","")|replace("'","")|truncate(159)}} by {{author|replace("@","")|truncate(80)}}

Add date and sanitize filename.

Page Metadata

{% if image_url -%}
![rw-book-cover]({{image_url}})