Skip to content

Instantly share code, notes, and snippets.

@Kfir-G
Kfir-G / init.vim
Last active August 22, 2025 20:04
NeoVim
" General Settings ~/.config/nvim/init.vim
:set number
:set relativenumber
:set autoindent
:set tabstop=4
:set shiftwidth=4
:set smarttab
:set softtabstop=4
:set mouse=a
:set path+=**
@Kfir-G
Kfir-G / webauthn_client.js
Created December 27, 2024 11:33 — forked from samuelcolvin/webauthn_client.js
demo of webauthn using FastAPI
const log_el = document.getElementById('log')
function log(...messages) {
console.log(...messages)
log_el.innerText += '\n' + messages.map(m => JSON.stringify(m, null, 2)).join(' ')
}
function error(message) {
console.error(message)
log_el.innerText += '\n' + message
@Kfir-G
Kfir-G / ReadMe.md
Last active September 22, 2024 12:18
Unleash the Power of FastAPI: Async vs Blocking I/O

README

Running the Example

  1. Install dependencies:

    pip install fastapi uvicorn
  2. Start the FastAPI server: