Skip to content

Instantly share code, notes, and snippets.

@ParthKolekar
ParthKolekar / FIDO2 Auth.md
Last active October 28, 2025 12:40
FIDO2 Auth
sequenceDiagram
    participant User
    participant Client (Phone/PC)
    participant FIDO2 Authenticator (Bluetooth Key)
    participant Server (Website/App)

    User->>Client (Phone/PC): Initiates login
    Client (Phone/PC)->>Server (Website/App): Request authentication challenge
 Server (Website/App)-->>Client (Phone/PC): Sends challenge (nonce, params)
@ParthKolekar
ParthKolekar / fibonacci.py
Last active June 7, 2016 15:19
One liner recursive fibonacci in python
def fibonacci(n): return 1 if not n or not n - 1 else fibonacci(n - 1) + fibonacci(n - 2)
@ParthKolekar
ParthKolekar / fizzbuzz.py
Last active June 7, 2016 15:12
One Liner Python Fizzbuzz
def fizzbuzz(n): return map(lambda x: 'fizzbuzz' if not x % 5 and not x % 3 else 'fizz' if not x % 3 else 'buzz' if not x % 5 else str(x), range(n))