Skip to content

Instantly share code, notes, and snippets.

View s-c-p's full-sized avatar
🍄

S C P s-c-p

🍄
  • India
View GitHub Profile
@s-c-p
s-c-p / wgcf.py
Created June 9, 2021 09:56 — forked from oskar456/wgcf.py
Cloudflare WARP linux client (using wg-quick for actual tunnel setup)
#!/usr/bin/env python3
import subprocess
import json
import os
from pathlib import Path
import requests
from requests.compat import urljoin
@s-c-p
s-c-p / algebraic_data_type.py
Created August 9, 2020 05:43 — forked from apua/algebraic_data_type.py
A practice of Algebraic Data Type implementation in Python
# python3.6 -m doctest algebraic_data_type.py
"""
A practice that implement algebraic data type in Python.
> data Maybe a = Just a | Nothing
Usage of `Maybe`:
>>> Just(3)