Skip to content

Instantly share code, notes, and snippets.

View Gijs6's full-sized avatar
🎶
Vibing

Gijs Gijs6

🎶
Vibing
View GitHub Profile
@Gijs6
Gijs6 / rplace.html
Last active June 4, 2025 14:33
r/place with socket.io
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>r/place</title>
<style>
body {
display: flex;
@Gijs6
Gijs6 / generate_screen.js
Last active May 18, 2025 19:21
Generate website screens with Puppeteer
const puppeteer = require("puppeteer");
const websites = ["https://gijs6.nl"];
async function takeScreenshot(url) {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.setViewport({ width: 1280, height: 720 });
@Gijs6
Gijs6 / album_grid.py
Last active May 26, 2025 20:28
Spotify-like image covers with the API
import requests
import random
import math
from PIL import Image
from io import BytesIO
def generate_grid(api_key, playlist_id, output_resolution=2500, max_size=100, shuffle_mode="random"):
"""