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

@sumitsingh6
Copy link

image

image

image

@konacurrents
Copy link

IMG_5852

Strange, when I do this in 2023 to my private repositories, there is no jpg link - but rather an indirect link that only lets those with permission to see the image. That changed this year as far as I can tell (and it's kinda unfortunate.) I guess I can make things public to get the link and private for the writeups.

@cac4444
Copy link

cac4444 commented Aug 13, 2023

GODdamn

@cac4444
Copy link

cac4444 commented Aug 14, 2023

ezgif-4-ee46f9d821

@nehrakln07
Copy link

Screenshot 2023-08-15 at 2 26 36 AM

@ooanishoo
Copy link

2023-08-22 at 7 55 pm

@ooanishoo
Copy link

2023-08-22 at 8 04 pm

@ooanishoo
Copy link

2023-08-22 at 9 21 pm

@ooanishoo
Copy link

2023-08-22 at 9 26 pm

@Ma1arkey
Copy link

147355810-ecd4435b-0e60-45c4-b901-be98983cc744

@wtfelyas
Copy link

Uploading background.jpg…

ll

@nehrakln07
Copy link

lembdadev_banner

@FarID087
Copy link

FarID087 commented Sep 27, 2023

ra_yaa2-20230927-0001

@FarID087
Copy link

IMG-20230928-WA0000

@FarID087
Copy link

1695898555048

@JYunth
Copy link

JYunth commented Oct 2, 2023

2
1

@Aleksanaa
Copy link

ccby
sw
sw2

@Adedolapooo
Copy link

E7346950-528A-465A-8770-32B450D0017C

@mozarik
Copy link

mozarik commented Oct 17, 2023

image

@Maro314o
Copy link

Screenshot 2023-10-20 alle 18 13 55

@DavidNizDev
Copy link

DALL·E 2023-10-20 18 02 05 Online Learning Platforms and Video Conferencing Technology

@DavidNizDev
Copy link

image

@rendi12345678
Copy link

Uploading IMG_20231121_160602.jpg…

@Doquancht
Copy link

Logo-MoMo-Square

@rendi12345678
Copy link

Uploading sc-ranking-feature.png…

@rendi12345678
Copy link

Uploading sc-ranking-feature.png…

@rendi12345678
Copy link

sc-ranking-feature

@rendi12345678
Copy link

sc-user-profile

@rendi12345678
Copy link

Screenshot 2023-11-15 165703

@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