Skip to content

Instantly share code, notes, and snippets.

View dewstend's full-sized avatar
🏠
Focused

Joseph Quevedo dewstend

🏠
Focused
View GitHub Profile
@dewstend
dewstend / arepas.html
Created May 15, 2026 15:59
The History of Venezuelan Arepas
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>The History of Venezuelan Arepas</title>
<style>
body { font-family: Georgia, serif; max-width: 720px; margin: 2em auto; line-height: 1.6; color: #333; }
h1 { color: #8B4513; }
.refs { font-size: 0.85em; color: #666; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
@dewstend
dewstend / mean_rgb.rs
Last active November 20, 2025 14:56
Averaging RGB values from a JPG
use std::error::Error;
use image::ImageReader;
fn main() -> Result<(), Box<dyn Error>> {
let img_path = "data/picture.jpg";
let image = ImageReader::open(img_path)?.decode()?;
let rgb_image = image.to_rgb8();