This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HorizontalPrint: | |
def __init__(self): | |
self.y = 0 | |
self.buffer = [""] | |
def print(self, v: str): | |
self.buffer[self.y] += v | |
self.y += 1 | |
if len(self.buffer) <= self.y: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
InputSym = int # 0 or 1 | |
OutputSym = str # from State.output | |
class State: | |
def __init__(self, name: str) -> None: | |
self.name = name | |
self.sigma = [0, 1] | |
self.output = ["a", "b"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import discord | |
import dotenv | |
import requests | |
from dataclasses import dataclass | |
from typing import Optional, Protocol | |
dotenv.load_dotenv() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Freq Generator | |
* A Simple Sine wave frequency generator | |
* | |
* Developed by - DuskyElf | |
* MIT Licence @duskyelf 2023 | |
* | |
* compile command - | |
* `cc -o sine_freq sine_freq.c -lm` | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node: | |
def __init__(self, value, prev=None, next=None): | |
self.value = value | |
self.prev = prev | |
self.next = next | |
def __repr__(self): | |
return f"Node({self.value})" | |
class LinkedList: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
gestures = [ | |
""" | |
_______ | |
---' ____) | |
(_____) | |
(_____) | |
(____) | |
---.__(___) |