Skip to content

Instantly share code, notes, and snippets.

View RuliLG's full-sized avatar

Raúl López RuliLG

View GitHub Profile
@RuliLG
RuliLG / greet.py
Created March 11, 2026 09:59
Python greet snippet
def greet(name: str) -> str:
return f"Hello, {name}! Welcome aboard."
if __name__ == "__main__":
print(greet("world"))
import { Request, Response, NextFunction } from "express";
import jwt from "jsonwebtoken";
const JWT_SECRET = process.env.JWT_SECRET || "dev-secret";
export interface AuthRequest extends Request {
userId?: string;
}
export function requireAuth(req: AuthRequest, res: Response, next: NextFunction) {
@RuliLG
RuliLG / RBResizer.swift
Last active August 29, 2015 23:58 — forked from HamptonMakes/RBResizer.swift
Swift Image Resizer
//
// RBResizer.swift
// Locker
//
// Created by Hampton Catlin on 6/20/14.
// Copyright (c) 2014 rarebit. All rights reserved.
//
import UIKit