Skip to content

Instantly share code, notes, and snippets.

@KIC
KIC / gist:9bd884f2d4f2c50e1c48e4922915d6ac
Created March 10, 2026 09:56
linux `find` and then display as interactive tree
#!/bin/env python3
from typing import Dict, Any, Optional, cast
from textual.app import App, ComposeResult
from textual.driver import Driver
from textual.widgets import Tree
from textual import events, on
from dataclasses import dataclass
from enum import Enum
import sys
import re
@KIC
KIC / gist:4c40799649881c54460aed200e1f9e2f
Last active February 11, 2026 16:09
Brute Force Check Sum
from mnemonic import Mnemonic
import hashlib
import hmac
from ecdsa import SigningKey, SECP256k1
from ecdsa.util import string_to_number
import numpy as np
import requests
# Get BIP39 wordlist
@lru_cache
@KIC
KIC / cartpole_dqn.py
Created April 23, 2020 18:08 — forked from sauravkaushik8/cartpole_dqn.py
The is a python script which solves the CartPole-v1 OpenAI gym environment using DQN.
import gym
import numpy as np
import random
from collections import deque
GAME_NAME = 'CartPole-v1'
ETA = 0.001
GAAMA = 1