Search results

  1. fukurou

    port overlort python ->Swift assed edition!

    class UniqueItemsPriorityQue: LGFIFO { override func insert(_ data: String) { if !queue.contains(data) { queue.append(data) } } override func peak() -> String { return super.peak() ?? "" } func strContainsResponse(_ item: String) -> Bool...
  2. fukurou

    port overlort python ->Swift assed edition!

    class LGFIFO: CustomStringConvertible { internal var queue: [String] = [] var description: String { return queue.joined(separator: " ") } func isEmpty() -> Bool { return queue.isEmpty } func peak() -> String? { return isEmpty() ? nil ...
  3. fukurou

    port overlort python ->Swift assed edition!

    v2 time gate class TimeGate { private var pause: Int private var openedGate: Date private var checkPoint: Date init(_ minutes: Int) { self.pause = max(1, minutes) let now = Date() self.openedGate = now self.checkPoint = now...
  4. fukurou

    port overlort python ->Swift assed edition!

    class TimeGate{ //time boolean gate // gate goes open (pause minutes time)-> closed private var pause:Int = 5 private var openDate:Date = Date() private var checkPoint:Date = Date() init() { openGate() } init(pause:Int) { if pause < 0 || pause > 60...
  5. fukurou

    port overlort python ->Swift assed edition!

    class CodeParser { static func extract_code_number(_ s: String) -> Int { let pattern = #"^code (\d+)$"# if let regex = try? NSRegularExpression(pattern: pattern) { let range = NSRange(s.startIndex..., in: s) if let match = regex.firstMatch(in: s...
  6. fukurou

    port overlort python ->Swift assed edition!

    // ╔════════════════════════════════════════════════════════════════════════╗ // ║ TRIGGERS ║ // ╚════════════════════════════════════════════════════════════════════════╝
  7. fukurou

    port overlort python ->Swift assed edition!

    class CityMapWithPublicTransport { private var streets: [String: [String]] = [:] private var transportLines: [String: [String]] = [:] private var maxConnections: Int private var lastInp: String = "standby" init(_ n: Int) { self.maxConnections = n } func...
  8. fukurou

    port overlort python ->Swift assed edition!

    class CityMap { private var streets: [String: [String]] = [:] private var maxConnections: Int private var lastInp: String = "standby" init(_ n: Int) { self.maxConnections = n } func add_street(_ current_street: String, _ new_street: String) { guard...
  9. fukurou

    port overlort python ->Swift assed edition!

    new ver: class RegexUtil { static func extractRegex(_ theRegex: String, _ str2Check: String) -> String { if let match = str2Check.range(of: theRegex, options: .regularExpression) { return String(str2Check[match]).trimmingCharacters(in: .whitespaces) }...
  10. fukurou

    port overlort python ->Swift assed edition!

    class LGPointInt: CustomStringConvertible { private(set) var x: Int private(set) var y: Int init(_ x_init: Int, _ y_init: Int) { self.x = x_init self.y = y_init } func shift(_ x: Int, _ y: Int) { self.x += x self.y += y } func...
  11. fukurou

    port overlort python ->Swift assed edition!

    TimeUtils: see txt
  12. fukurou

    port overlort python ->Swift assed edition!

    class PhraseInflector { // Maps for pronoun and verb inflection ⚙️ static let inflectionMap: [String: String] = [ "i": "you", "me": "you", "my": "your", "mine": "yours", "you": "i", "your": "my", "yours": "mine", "am": "are", "are": "am", "was": "were", "were"...
  13. fukurou

    port overlort python ->Swift assed edition!

    class AXStringSplit { // May be used to prepare data before saving or after loading // The advantage is fewer data fields (e.g., {skills: s1_s2_s3}) ✨ private var _separator: String = "_" func setSeparator(_ separator: String) { self._separator = separator }...
  14. fukurou

    port overlort python ->Swift assed edition!

    class AXNeuroSama { // The higher the rate, the less likely to decorate outputs (◕‿◕✿) private let _rate: Int private let _nyaa: Responder private let _rnd: DrawRnd init(_ rate: Int) { self._rate = rate self._nyaa = Responder(" heart", " heart", " wink", "...
  15. fukurou

    port overlort python ->Swift assed edition!

    class AXLMorseCode { // A happy little Morse Code converter~! (◕‿◕✿) private let morseDict: [Character: String] = [ "A": ".-", "B": "-...", "C": "-.-.", "D": "-..", "E": ".", "F": "..-.", "G": "--.", "H": "....", "I": "..", "J": ".---", "K"...
  16. fukurou

    port overlort python ->Swift assed edition!

    class AXFunnel { // Funnel all sorts of strings to fewer or other strings (•‿•) private var dic: [String: String] = [:] private var defaultValue: String init(_ defaultValue: String = "default") { self.defaultValue = defaultValue } func setDefault(_...
  17. fukurou

    port overlort python ->Swift assed edition!

    // ╔════════════════════════════════════════════════════════════════════════╗ // ║ TABLE OF CONTENTS ║ // ╠════════════════════════════════════════════════════════════════════════╣ // ║ 1. STRING CONVERTERS...
  18. fukurou

    [MEDIA]

  19. fukurou

    [MEDIA]

  20. fukurou

    ass shit creamed corn inside the ass

    class MemoryCore: def __init__(self, dialogue_limit=10, emotion_limit=10, tokens_limit=5): self.recent_dialogue = Catche(dialogue_limit) # Stores recent user and bot utterances self.recent_emotions = Catche(emotion_limit) # Stores keywords/emotional triggers...
Top