Skip to content

Instantly share code, notes, and snippets.

View yusuf8ahmed's full-sized avatar
💎
Perfecting Python Projects 🌟

Yusuf Ahmed yusuf8ahmed

💎
Perfecting Python Projects 🌟
View GitHub Profile
@bone-house
bone-house / ViewContext.tsx
Created March 20, 2023 14:59
View transitions with R3F + spring + react-router-dom
import React, { createContext, useContext, useEffect, useMemo, useRef, useState } from 'react'
import { useLocation } from 'react-router-dom'
export interface ViewProps {
// If the view has animations that should finish before route change happens
delayedTransition?: boolean
}
export interface ViewContext {
// If the browser's path is the same as context's path
@mdonkers
mdonkers / server.py
Last active May 23, 2024 00:16
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@19WAS85
19WAS85 / powershell-web-server.ps1
Last active May 12, 2024 14:09
A simple web server built with powershell.
# This is a super **SIMPLE** example of how to create a very basic powershell webserver
# 2019-05-18 UPDATE — Created by me and and evalued by @jakobii and the comunity.
# Http Server
$http = [System.Net.HttpListener]::new()
# Hostname and port to listen on
$http.Prefixes.Add("http://localhost:8080/")
# Start the Http Server