Search results

  1. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class Catche: # limited sized dictionary def __init__(self, size): super().__init__() self._limit: int = size self._keys: UniqueItemSizeLimitedPriorityQueue = UniqueItemSizeLimitedPriorityQueue(size) self._d1: dict[str, str] = {} def insert(self, key...
  2. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class SkillHubAlgDispenser: """super class to output an algorithm out of a selection of skills // engage the hub with dispenseAlg and return the value to outAlg attribute // of the containing skill (which houses the skill hub) // this module enables using a selection of 1...
  3. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class Map: def __init__(self): self._pointDescription: dict[str, str] = {} self._descriptionPoint: dict[str, str] = {} self._currentPosition: LGPointInt = LGPointInt(0, 0) self.regexUtil: RegexUtil = RegexUtil() def reset(self): # sleep location...
  4. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class InputFilter: """filter out non-relevant input or filter in relevant data""" def input(self, ear: str, skin: str, eye: str) -> str: # override me pass
  5. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    :s27: class EV3DaisyChainAndMode(TrGEV3): # this class connects several logic gates triggers together def __init__(self, gates: TrGEV3): self._trgGates: list[TrGEV3] = [] for gate in gates: self._trgGates.append(gate) # override def input(self, ear...
  6. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class ForcedLearn(UniqueItemSizeLimitedPriorityQueue): '''remembers key inputs because they start with keyword // also can dispense key inputs''' def __init__(self, queLimit: int): super().__init__(queLimit) self._regexUtil: RegexUtil = RegexUtil()...
  7. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class Responder: # simple random response dispenser def __init__(self, *replies: str): self.responses: list[str] = [] for response in replies: self.responses.append(response) def getAResponse(self) -> str: if not self.responses: return...
  8. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class Cycler: # cycles through numbers limit to 0 non-stop def __init__(self, limit: int): self.limit: int = limit self._cycler: int = limit def cycleCount(self) -> int: self._cycler -= 1 if self._cycler < 0: self._cycler = self.limit...
  9. fukurou

    [MEDIA]

  10. fukurou

    [MEDIA]

  11. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class CombinatoricalUtils: # combo related algorithmic tools def __init__(self): self.result: list[str] = [] def _generatePermutations(self, lists: list[list[str]], result: list[str], depth: int, current: str): # this function has a private modifier (the "_" makes it...
  12. fukurou

    bruce lee

    @ZORO
  13. fukurou

    πŸ‘¨β€πŸ’» dev AXPython pt2

    class AXNightRider: # night rider display simulation for LED lights count up than down def __init__(self, limit: int): self._mode: int = 0 self._position: int = 0 self._lim = 0 if limit > 0: self._lim = limit self._direction = 1...
  14. fukurou

    AXPython

    ''' PRIORITYQUEUE CLASS ''' # A simple implementation of Priority Queue # using Queue. class LGFIFO: def __init__(self): self.queue = [] def __str__(self): return ' '.join([str(i) for i in self.queue]) # for checking if the queue is empty def isEmpty(self)...
Top