Skip to content

Instantly share code, notes, and snippets.

View affandhia's full-sized avatar
💭
Frontend Enthusiast

Affan Dhia Ardhiva affandhia

💭
Frontend Enthusiast
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>navigator.modelContext — Chrome Built-in AI Context API</title>
<style>
* {
box-sizing: border-box;
margin: 0;
@affandhia
affandhia / AuthyToOtherAuthenticator.md
Created February 29, 2024 14:17 — forked from gboudreau/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
import requests
import re
import sys
import time
import datetime
import hashlib
LOGIN_URL = 'http://harun.net/login'
clear = lambda : print("\033[H\033[J")
D = diag(diag(A));
L = tril(-A,-1);
U = triu(-A,1);
Tj = inv(D)*(L+U);
rho_Tj = max(abs(eig(Tj)));
w = 2./(1+sqrt(1-rho_Tj^2));