Skip to content

Instantly share code, notes, and snippets.

View amaank404's full-sized avatar
:bowtie:
Eh, sharpening my knife

Amaan amaank404

:bowtie:
Eh, sharpening my knife
View GitHub Profile
@amaank404
amaank404 / benchmark.py
Last active February 28, 2023 11:50
A Simple Benchmark program intended to run without any open programs. It works on any Python Implementation
import time
def r1(t: float):
x = 0
y = 0
timer = time.perf_counter()
while time.perf_counter() - timer < t:
x += 7
y += 1
@amaank404
amaank404 / ANSI.md
Created November 23, 2020 07:01 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27