Skip to content

Instantly share code, notes, and snippets.

View axsddlr's full-sized avatar
🎯
Focusing

Andre Saddler axsddlr

🎯
Focusing
View GitHub Profile
@axsddlr
axsddlr / claude_3.5_sonnet_artifacts.xml
Created June 28, 2024 20:14 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times
@axsddlr
axsddlr / dispatch_openai_requests.py
Created April 23, 2023 05:09 — forked from neubig/dispatch_openai_requests.py
A simple script to get results from the OpenAI Asynchronous API
import openai
import asyncio
from typing import Any
async def dispatch_openai_requests(
messages_list: list[list[dict[str,Any]]],
model: str,
temperature: float,
max_tokens: int,
top_p: float,
@axsddlr
axsddlr / promptconvert.py
Created February 23, 2023 00:55 — forked from watzon/promptconvert.py
Stable Diffusion WebUI to InvokeAI prompt conversion script
import re
import argparse
re_attention = re.compile(r"""
\\\(|
\\\)|
\\\[|
\\]|
\\\\|
\\|
@axsddlr
axsddlr / clip_interrogator.py
Created January 29, 2023 20:30
clip-interrogator
# CLIP Interrogator 2.2 by [@pharmapsychotic](https://twitter.com/pharmapsychotic)
#
# Want to figure out what a good prompt might be to create new images like an existing one? The CLIP Interrogator is here to get you answers!
#
# <br>
#
# For Stable Diffusion 1.X choose the **ViT-L** model and for Stable Diffusion 2.0+ choose the **ViT-H** CLIP Model.
#
# This version is specialized for producing nice prompts for use with Stable Diffusion and achieves higher alignment between generated text prompt and source image. You can try out the old [version 1](https://colab.research.google.com/github/pharmapsychotic/clip-interrogator/blob/v1/clip_interrogator.ipynb) to see how different CLIP models ranks terms.
#
@axsddlr
axsddlr / index.html
Created December 5, 2018 21:26
Social media hover icons with pop-up titles
<div>
<a href="#"><span>Facebook</span></a>
<a href="#"><span>Twitter</span></a>
<a href="#"><span>Google+</span></a>
<a href="#"><span>Github</span></a>
<a href="#"><span>Dribbble</span></a>
<a href="#"><span>CodePen</span></a>
</div>
/home/ayysir/.pm2/logs/soge-out.log last 15 lines:
0|soge | at Object.modify (/home/ayysir/soge/node_modules/nedb/lib/mod el.js:458:15)
0|soge | at /home/ayysir/soge/node_modules/nedb/lib/datastore.js:618:3 3
0|soge | at /home/ayysir/soge/node_modules/nedb/lib/datastore.js:329:1 4 } reason: TypeError: Cannot set property '[object Array]' of null
0|soge | 2018-11-21T02:21:02.973 !!! ERROR !!! Possibly Unhandled Rejection at: Promise {
0|soge | <rejected> TypeError: Cannot set property '[object Array]' of nul l
0|soge | at Object.lastStepModifierFunctions.$set (/home/ayysir/soge/n ode_modules/nedb/lib/model.js:253:14)
0|soge | at Object.$set (/home/ayysir/soge/node_modules/nedb/lib/model .js:417:42)
0|soge | at Object.$set (/hom
@axsddlr
axsddlr / index.pug
Created November 19, 2018 21:23
Stylish Social Buttons
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
<link href='https://fontastic.s3.amazonaws.com/sEsaN6ZPMiVLUYDwwr6us4/icons.css' rel='stylesheet' type='text/css'>
-var sites = [
- 'facebook',
- 'twitter',
- 'google',
- 'steam',
<!-- you can also use html here, global filters and custom variables are also available -->
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>
<link href='https://fontastic.s3.amazonaws.com/sEsaN6ZPMiVLUYDwwr6us4/icons.css' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<ul class='social'>
<li>
<a class="fa fa-instagram" href="#">
@axsddlr
axsddlr / css3-pseudo-sound-bars.markdown
Created November 12, 2018 23:25
CSS3 Pseudo Sound Bars
2018-09-11T22:36:32.219 !!! ERROR !!! uncaughtException: listen EADDRINUSE :::20001
Error: listen EADDRINUSE :::20001
at Server.setupListenHandle [as _listen2] (net.js:1336:14)
at listenInCluster (net.js:1384:12)
at Server.listen (net.js:1471:7)
at Panel.listen (/home/ayysir/soge/src/bot/panel.js:292:15)
at expose (/home/ayysir/soge/src/bot/main.js:153:18)
at process._tickCallback (internal/process/next_tick.js:68:7)
2018-09-11T22:36:40.665 !!! ERROR !!! uncaughtException: listen EADDRINUSE :::20001
Error: listen EADDRINUSE :::20001