Skip to content

Instantly share code, notes, and snippets.

View arifsisman's full-sized avatar
🎯
Focusing

Mustafa Arif Şişman arifsisman

🎯
Focusing
View GitHub Profile
@thekeenant
thekeenant / Derivatives.java
Last active August 20, 2023 15:53
Approximate the derivative of a function in Java.
import java.util.function.DoubleFunction;
public class Derivatives {
// approximate the limit
private static final double DX = 0.0001;
/**
* @param f f(x), the function to derive
* @return f'(x), the derivative of the f(x)
*/
@mdonkers
mdonkers / server.py
Last active July 22, 2024 13:51
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
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 23, 2024 04:22
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k