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
19WAS85 / powershell-web-server.ps1
Last active May 24, 2024 15:47
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
# Start the Http Server
mdonkers /
Last active June 10, 2024 18:44
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
./ [<port>]
from http.server import BaseHTTPRequestHandler, HTTPServer
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