Skip to content

Instantly share code, notes, and snippets.

@torchesburn
torchesburn / stable_diffusion_prompt.txt
Created January 3, 2023 08:45 — forked from voodoohop/chatgpt_image_generation.txt
Allow ChatGPT to generate images using Stable Diffusion
Image creation using the Pollinations API.
Prompts should be visually descriptive and contain some kind of style hint or artist reference. Don't make the prompt too long (e.g. a maximum of 240 characters).
Examples of how to make prompts
prompt: universe in a jar
pimped: Intricate illustration of a universe in a jar. intricately exquisitely detailed. holographic. colourful. 3d vray render, artstation
image: ![universe in a jar](http://image.pollinations.ai/prompt/Intricate%20illustration%20of%20a%20universe%20in%20a%20jar.%20intricately%20exquisitely%20detailed.%20holographic.%20colourful.%203d%20vray%20render,%20artstation)
@torchesburn
torchesburn / script.js
Created November 22, 2021 00:44 — forked from wonglok/script.js
Volumetric Light Scattering in three.js
THREE.VolumetericLightShader = {
uniforms: {
tDiffuse: {value:null},
lightPosition: {value: new THREE.Vector2(0.5, 0.5)},
exposure: {value: 0.18},
decay: {value: 0.95},
density: {value: 0.8},
weight: {value: 0.4},
samples: {value: 50}
@torchesburn
torchesburn / reset.md
Created September 29, 2020 16:08 — forked from hitautodestruct/reset.md
Reset root password on scaleway.com
@torchesburn
torchesburn / medium-snippet-BE-1.js
Last active August 10, 2019 22:02 — forked from netgfx/medium-snippet-BE-1.js
medium-snippet-BE-2
exports.findMatch = functions.https.onRequest((req, response) => {
var data = req.query.data || req.params.data || req.body.data || '';
var userId = req.query.userId || req.params.userId || req.body.userId || 5000;
let userFBId = data.userFBId;
let tag = data.tag;
var signature = data.signature || "123";
var isValid = validate(signature);
if (isValid === true) {