Skip to content

Instantly share code, notes, and snippets.

@vinkla
Last active July 10, 2024 02:58
Show Gist options
  • Save vinkla/dca76249ba6b73c5dd66a4e986df4c8d to your computer and use it in GitHub Desktop.
Save vinkla/dca76249ba6b73c5dd66a4e986df4c8d to your computer and use it in GitHub Desktop.

Upload images to GitHub

  1. Create a new issue on GitHub.

  2. Drag an image into the comment field.

  3. Wait for the upload process to finish.

  4. Copy the URL and use it in your Markdown files on GitHub.

Example of uploading image to GitHub's CDN

@cyberprophet
Copy link

20231217_125817

@VBGCoder
Copy link

@VBGCoder
Copy link

yoga tutor

@VBGCoder
Copy link

neo4j

@VBGCoder
Copy link

chatapp

@VBGCoder
Copy link

Encryption

@DS66Dor
Copy link

DS66Dor commented Dec 21, 2023

gbr

@Dbhardwaj99
Copy link

Alert

@Dbhardwaj99
Copy link

DetailView

@Dbhardwaj99
Copy link

Dribbble shot HD - 05-2

@vanessabrazuna
Copy link

Cover

@eikarna
Copy link

eikarna commented Jan 9, 2024

IMG-20240109-WA0018

IMG-20240109-WA0019

@PIPIsolana
Copy link

photo_2024-01-14_01-32-58

@khrizar
Copy link

khrizar commented Jan 22, 2024

Screenshot 2024-01-22 at 17 58 02

@andresvacal
Copy link

COCCOA_ROJO_PREGUNTAS STORY
COCCOA_AZUL
![Segunda etapa](https://gist.gith
Taquilla
ub.com/assets/77646529/99c2c196-9d44-4821-a5ee-7d64fb7a0e52)
Primera etapa

@SphaxWare
Copy link

DIAGRAMME 00-09

@SphaxWare
Copy link

web11 drawio

@SphaxWare
Copy link

2-secured_and_monitored_web_infrastructure

@SphaxWare
Copy link

2-secured_and_monitored_web_infrastructure

@kou234gh
Copy link

kou234gh commented Feb 3, 2024

fomulatest

@waheedumer345
Copy link

pexels-sevenstorm-juhaszimrus-439416

@martialanouman
Copy link

AI Image (1)

@jonattasmoraes
Copy link

Capture-2024-02-12-063520

@CarlosHenrique-CA
Copy link

LEGENDS_1

@dzolotarev
Copy link

task_manager

@Nakux
Copy link

Nakux commented Mar 3, 2024

screenshot

@Jimmynycu
Copy link

uml drawio

@Driftzx
Copy link

Driftzx commented Mar 29, 2024

yes

@character42
Copy link

IMG_3870

@cesar1091
Copy link

breit-y-programa

@cesar1091
Copy link

logo-anc-alta

@Giogeorge213
Copy link

Screenshot 2024-05-01 at 7 38 23 PM

@Haimoi
Copy link

Haimoi commented May 19, 2024

118856208_p0

@JuneRose8451
Copy link

let mySound;
let creature, tenticles = [];

function preload() {
mySound = loadSound('assets/peace.mp3');

}
function setup() {
createCanvas(600, 600);
creature = new Creature(createVector(width * 0.5, height * 0.5), 42);
tenticles[0] = new Tenticle(width * 0.525, height * 0.45);
tenticles[1] = new Tenticle(width * 0.475, height * 0.45);
tenticles[2] = new Tenticle(width * 0.475, height * 0.5);
tenticles[3] = new Tenticle(width * 0.475, height * 0.5);
tenticles[4] = new Tenticle(width * 0.475, height * 0.45);
tenticles[5] = new Tenticle(width * 0.475, height * 0.45);
cnv.mousePressed(canvasPressed);
noFill();
rect(0, height/2, width - 1, height/2 - 1);
rect(0, 0, width - 1, height/2);
textAlign(CENTER, CENTER);
fill(20);
text('restart', width/2, 1 * height/4);
text('sustain', width/2, 3 * height/4);

// Create a button and place it beneath the canvas.
let button = createButton('help me');
button.position(200, 600);

// Call repaint() when the button is pressed.
button.mousePressed(repaint);

describe('A gray square with a button that says "click me" beneath it. The square changes color when the button is clicked.');

cnv.mousePressed(canvasPressed);

background(220);
text('tap here to play', 10, 20);
};

function canvasPressed() {
if (mouseX < height/2) {
mySound.playMode('restart');
} else {
mySound.playMode('sustain');
}
mySound.play();
};

// Change the background color.
function repaint() {
let g = random(255);
background(g);
}

function draw() {
background(25,99,44);
tenticles[0].render(map(mouseX, 0, width, -0.3, 0.03), createVector(8, 12));
tenticles[1].render(map(mouseX, 0, width, 0.03, -0.3), createVector(-8, -12));
tenticles[2].render(map(mouseX, 0, width, 0.03, -0.3), createVector(-12, 8));
tenticles[3].render(map(mouseX, 0, width, 0.03, -0.3), createVector(12, 8));
tenticles[4].render(map(mouseX, 0, width, 0.03, -0.3), createVector(-22, 12));
tenticles[5].render(map(mouseX, 0, width, 0.03, -0.3), createVector(22, -12));
creature.render();

if (mouseIsPressed === true) {
if (mouseButton === LEFT) {
circle(450, 50, 30);
circle(390, 35, 30);
circle(70, 80, 30);
circle(40, 75, 30);
circle(390, 335, 30);
circle(370, 410, 30);
circle(430, 75, 30);
}
if (mouseButton === RIGHT) {
square(25, 3, 50);
}
if (mouseButton === CENTER) {
triangle(23, 75, 50, 20, 78, 75);
}
}
}

class Creature {
constructor(pos, rad) {
this.pos = {
x: pos.x,
y: pos.y
};
this.rad = rad;
}

drawNoiseLoop() {
push();
fill(33);
noStroke();
let cnt = 50;
beginShape();
let time = frameCount / 100;
for (let i = 0; i <= cnt; i++) {
let theta = map(i, 0, cnt, 0, TWO_PI);
let r = this.rad * (1 + noise(sin(theta) + 1, cos(theta) + 1, time) * 0.7);
let x = this.pos.x + r * cos(theta);
let y = this.pos.y + r * sin(theta);
vertex(x, y);
}
endShape(CLOSE);
pop();

return this;

}

eyes() {
push();
noStroke();
fill('#eee');
ellipse(this.pos.x - 20, this.pos.y - 5, 30);
ellipse(this.pos.x + 20, this.pos.y - 5, 30);
fill(33);
ellipse(this.pos.x - 20, this.pos.y - 5, 10);
ellipse(this.pos.x + 20, this.pos.y - 5, 10);
pop();

return this;

}

render() {
return this.drawNoiseLoop().eyes();
}
}

class Tenticle {
constructor(x, y) {
this.pos = createVector(x, y);
this.w = 40;

}
trunk(tVal, rot) {
push();
translate(this.pos.x, this.pos.y);
for (let i = 0; i < 30; i++) {
stroke(33 - i);
fill(33 - i);
push();
let cnt = 33;
beginShape();
let time = frameCount / 100;
for (let i = 0; i <= cnt; i++) {
let theta = map(i, 0, cnt, 0, TWO_PI);
let r = 13 * (1 + noise(sin(theta) + 1, cos(theta) + 1, time) * 0.7);
let x = 0 + r * cos(theta);
let y = 0 + r * sin(theta);
vertex(x, y);
}
endShape(CLOSE);
pop();
rotate(tVal);
scale(0.9);
translate(rot.x, rot.y);
}
pop();
}

render(tVal, rot) {
this.trunk(tVal, rot);
}
}

@mimo4e
Copy link

mimo4e commented Jun 15, 2024

201f84b5cb9b4ba2959ac2220f299888

@Driftzx
Copy link

Driftzx commented Jun 18, 2024

adsas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment