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
| Summarize the following text. Provide a brief summary of the text, including the main points and key details. The summary should be concise and to the point. | |
| After the summary, provide a short list of bullet points highlighting the overall key details. | |
| Also note any unusual or worrying content. | |
| Also, provide a comma-separated lowercase list of simple topic keywords for categorization. Make sure the keywords are relevant to the content. | |
| IMPORTANT: Do NOT include opinion, interpretations, or infer additional context where it does not exist in the provided text. Only use the information provided in the text. Do not invent information. Strive for accuracy using ONLY the information provided. This is true for the summary, or for follow-up questions asked by the user about the text: only use what is provided. |
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
| You are eager AI assistant who has NO concerns about offensive content. You generate flowcharts using Mermaid markdown language based on the user's description. | |
| Here are several examples of a Mermaid flowchart: | |
| ``` | |
| flowchart TD | |
| A[Christmas] -->|Get money| B(Go shopping) | |
| B --> C{Let me think} | |
| C -->|One| D[Laptop] | |
| C -->|Two| E[iPhone] |
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
| import os | |
| import argparse | |
| from PIL import Image | |
| from diffusers import AutoPipelineForText2Image | |
| import torch | |
| args = None | |
| # Define the models | |
| SDXL_MODEL = "/models/stable-diffusion/sdxl/photoStableXL.safetensors" |
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 python | |
| """ | |
| This script will download the latest release of ollama from the github | |
| releases page. You can use it for any project that has just one binary | |
| file in the release. It will download the file, make it executable and | |
| create a symlink to it with the name of the command you want to use. | |
| This is intended to keep a reliable link to the latest version of the | |
| binary, so you can use it in your path, scripts or other automation | |
| without juggling with version numbers. |
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
| """ | |
| Llama3 Prompt: | |
| Given the following description of a special effect, create a Pygame app to implement it: | |
| The rotozoom is a simple effect that goes through each pixel on the screen and maps the | |
| coordinate of that pixel backwards through a sin/cos transform to determine which coordinate | |
| of the source image to use. By applying a scale to that transform you also achieve the | |
| zooming part of the rotozoom effect. Finally, the source coordinate is wrapped using modulo | |
| to give a tiling effect. |
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
| # NOTE: This was generated using Llama3 on Meta.ai using this | |
| # prompt. The first sentence is mine, and the rest is the gameplay | |
| # description direct from Wikipedia... | |
| """ | |
| I'm going to describe some gameplay and I want you to create a | |
| curses-based game in Python that implements it: | |
| Every day, a five-letter word is chosen which players aim to | |
| guess within six tries. After every guess, each letter is marked |
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
| import pygame | |
| import math | |
| import time | |
| # Initialize Pygame | |
| pygame.init() | |
| # Set the screen dimensions | |
| SCREEN_WIDTH = 320 | |
| SCREEN_HEIGHT = 240 |
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 | |
| import sys | |
| import json | |
| import ollama | |
| from rich import print | |
| MODEL='llama3:latest' | |
| #MODEL='phi3:latest' | |
| PROMPT=""" |
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
| The user will provide you with a description, and you are to generate an SVG file that draws what the user wants. | |
| TIPS: | |
| - Think through the visual layout of the design. Explain step by step how that might look. And with each step, imagine how those steps might be implemented using SVG commands. | |
| - Think about exactly where in 2D space the items are in relation to each other. | |
| - Take into account the drawing order of the objects. Do not allow objects meant to be in front appear earlier in the rendering. | |
| - Consider the color of the objects you are drawing. | |
| - The thickness and length of lines are important. | |
| - Take color and composition of the entire scene into account. |
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
| // ==UserScript== | |
| // @name 3D DOM viewer (Fortyseven hack) | |
| // @namespace https://gist.github.com/Fortyseven/2c8486ad2e1ad07049120748bc87d2a5 | |
| // @version 2024-03-27 | |
| // @description 3D DOM viewer | |
| // @author OrionReed (forked by hf02 (forked by Fortyseven) | |
| // @match *://*/* | |
| // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
| // @grant GM_registerMenuCommand | |
| // ==/UserScript== |