Search results

  1. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TrgArgue { var commands = UniqueItemSizeLimitedPriorityQueue() var contextCommands = UniqueItemSizeLimitedPriorityQueue() private var trgTolerance = false // (breaking point of argument can be established (argue till counter == N)) var counter = 0 // count...
  2. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TODOListManager(todoLim: Int) { /* manages to do tasks. q1 tasks are mentioned once, and forgotten backup tasks are the memory of recently mentioned tasks * */ private val q1 = UniqueItemSizeLimitedPriorityQueue() private val backup =...
  3. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TimeAccumulator(tick: Int) { // accumulator ++ each tick minutes interval private var timeGate = TimeGate(5) var accumulator = 0 private set fun setTick(tick: Int) { timeGate.setPause(tick) } init { // accumulation ticker timeGate =...
  4. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class SpiderSense { // enables event prediction private var spiderSense = false private val events = UniqueItemSizeLimitedPriorityQueue() private val alerts = UniqueItemSizeLimitedPriorityQueue() private var prev = "" fun addEvent(event: String): SpiderSense { //...
  5. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class SkillHubAlgDispenser(vararg skillsParams: DiSkillV2) { // 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) //...
  6. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class AlgorithmV2(priority: Int, alg: Algorithm) { private var priority = 4 private var alg: Algorithm? = null init { this.priority = priority this.alg = alg } fun getAlg(): Algorithm? { return alg } fun setAlg(alg: Algorithm?) {...
  7. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    ppl don't think fappin' is a time waste. they are too uncultured to understand how better quality codes are produced on empty balls. I just jizzed and I'm sleepy
  8. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class RailChatBot { private val dic = Hashtable<String, RefreshQ>() private var context = "default" init { dic[context] = RefreshQ() } fun setContext(context: String) { if (context.isEmpty()) { return } this.context = context...
  9. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class ElizaDeducerInitializer : ElizaDeducer() { init { val babbleTmp = ArrayList<PhraseMatcher>() val kvs = ArrayList<AXKeyValuePair>() kvs.add(AXKeyValuePair("what is {0}", "{0} is {1}")) kvs.add(AXKeyValuePair("explain {0}", "{0} is {1}"))...
  10. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    open class ElizaDeducer { lateinit var babble2: List<PhraseMatcher> fun respond(msg: String): ArrayList<AXKeyValuePair> { for (pm in babble2) { if (pm.matches(msg)) { return pm.respond(msg) } } return ArrayList() }...
  11. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class OnOffSwitch { private var mode = false private val timeGate: TimeGate = TimeGate(5) private var on = Responder("on", "talk to me") private var off = Responder("off", "stop", "shut up", "shut it", "whatever", "whateva") fun setPause(minutes: Int) {...
  12. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TimeGate { // a gate that only stays open for x minutes after it has been set open // open gate returns true // closed state gate returns false // the gate starts closed private var pause = 5 //minutes to keep gate closed //private Date openedGate =...
  13. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class Magic8Ball { var questions = Responder() var answers = Responder() init { // answers : // Affirmative Answers answers.addResponse("It is certain") answers.addResponse("It is decidedly so") answers.addResponse("Without a doubt")...
  14. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class InputFilter { // filter out non-relevant input // or filter in relevant data fun filter(ear: String, skin: String, eye: String): String { // override me return "" } fun filter(ear: String): AXKeyValuePair { // override me : key =...
  15. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class Differ { var powerLevel = 90 private set var difference = 0 private set fun clearPowerLVDifference() { difference = 0 } fun samplePowerLV(pl: Int) { // pl is the current power level difference = pl - powerLevel...
  16. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class Cycler(var limit: Int) { // cycles through numbers limit to 0 non-stop var mode = 0 private set init { mode = limit } fun cycleCount(): Int { mode-- if (mode < 0) { mode = limit } return mode } fun...
  17. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class Cron( startTime: String, // triggers true, limit times, after initial time, and every minutes interval // counter resets at initial time, assuming trigger method was run private var minutes // minute interval between triggerings : Int, limit: Int ) : TrGEV3() { private...
  18. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    class TrgTime { var t = "null" var regexUtil = RegexUtil() var pl: PlayGround = PlayGround() private var alarm = true fun setTime(v1: String) { t = regexUtil.extractRegex(enumRegexGrimoire.SimpleTimeStamp, v1) } fun alarm(): Boolean { val now: String...
  19. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    PlayGround class too big to post
  20. fukurou

    πŸ‘¨β€πŸ’» dev porting Auxiliary modules Java->kotlin

    enum class enumTimes { DATE, DAY, YEAR, HOUR, MINUTES, SECONDS }
Top