Search results

  1. fukurou

    LDAR mega thread

  2. fukurou

    LDAR mega thread

  3. fukurou

    LDAR mega thread

  4. fukurou

    LDAR mega thread

  5. fukurou

    ass shit creamed corn inside the ass

    from __future__ import annotations
  6. fukurou

    port overlort python ->Swift assed edition!

    /// Simulates a "Night Rider" LED display that moves position up and down in a bounce pattern. class AXNightRider { private var mode: Int = 0 private var position: Int = 0 private var lim: Int = 0 private var direction: Int = 1 init(limit: Int) { if limit > 0 {...
  7. fukurou

    port overlort python ->Swift assed edition!

    /// Provides tools for generating string permutations from multiple lists. class CombinatoricalUtils { private(set) var result: [String] = [] /// Internal recursive function to generate permutations. private func generatePermutationsHelper(_ lists: [[String]], _ result: inout...
  8. fukurou

    port overlort python ->Swift assed edition!

    /// A simple key-value pair representation class AXKeyValuePair { private var key: String private var value: String init(key: String = "", value: String = "") { self.key = key self.value = value } func getKey() -> String { return key } func...
  9. fukurou

    port overlort python ->Swift assed edition!

    // ╔════════════════════════════════════════════════════════════════════════╗ // ║ MISCELLANEOUS ║ // ╚════════════════════════════════════════════════════════════════════════╝
  10. fukurou

    port overlort python ->Swift assed edition!

    /// A limited-size dictionary used for short-term memory. /// Evicts oldest entries based on insertion order. class Catche { private var limit: Int private var keys: UniqueItemSizeLimitedPriorityQueue private var dict: [String: String] = [:] init(size: Int) { self.limit...
  11. fukurou

    port overlort python ->Swift assed edition!

    /// Stores a log of notes and allows cyclical access class Notes { private var log: [String] = [] private var index: Int = 0 /// Add a new note to the log func add(_ note: String) { log.append(note) } /// Clear all notes func clear() {...
  12. fukurou

    port overlort python ->Swift assed edition!

    /// Manages a pool of dynamic strategies drawn from a central responder class Strategy { private var allStrategies: UniqueResponder private var strategiesLim: Int private var activeStrategy: UniqueItemSizeLimitedPriorityQueue init(_ allStrategies: UniqueResponder, _...
  13. fukurou

    port overlort python ->Swift assed edition!

    /// Enables pattern-based event prediction and alert recognition class SpiderSense { private var spiderSense: Bool = false private var events: UniqueItemSizeLimitedPriorityQueue private var alerts: UniqueItemSizeLimitedPriorityQueue private var previous: String = "null"...
  14. fukurou

    port overlort python ->Swift assed edition!

    // ╔════════════════════════════════════════════════════════════════════════╗ // ║ LEARNABILITY ║ // ╚════════════════════════════════════════════════════════════════════════╝
  15. fukurou

    port overlort python ->Swift assed edition!

    /// Detects directional changes between two observed string tokens /// and returns a corresponding code. class ChangeDetector { private let A: String private let B: String private var prev: Int = -1 init(_ a: String, _ b: String) { self.A = a self.B = b }...
  16. fukurou

    port overlort python ->Swift assed edition!

    /// Tracks the difference between sampled power levels. class Differ { private var powerLevel: Int = 90 private var difference: Int = 0 /// Returns the last sampled power level. func getPowerLevel() -> Int { return powerLevel } /// Returns the most recent...
  17. fukurou

    port overlort python ->Swift assed edition!

    /// AXHandshake manages time-based shout-outs and user acknowledgment class AXHandshake { private var trgTime = TrgTime() private var trgTolerance = TrgTolerance(10) private var shoutout = AXShoutOut() private var userName: String = "" private var dripper = PercentDripper()...
  18. fukurou

    port overlort python ->Swift assed edition!

    /// Reacts to a contextual "shout out" once and disables itself after reply. class AXShoutOut { private var isActive: Bool = false var handshake: Responder = Responder() /// Enable the shout out system—must be called to activate engagement func activate() { isActive =...
  19. fukurou

    port overlort python ->Swift assed edition!

    /// Detects if a button was pressed (on edge change). /// Disables physical engagement while the button remains pressed. class ButtonEngager { private var prevState: Bool = false /// Returns true only once when button is newly pressed. func engage(_ btnState: Bool) -> Bool {...
  20. fukurou

    port overlort python ->Swift assed edition!

    /// Common code lines used in machine logic to declutter /// Also provides simplified extensions for dictionary actions class AXMachineCode { private var dic: [String: Int] = [:] /// Adds a key-value pair to the internal dictionary /// Returns self to allow builder-style chaining...
Top