Search results

  1. fukurou

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

    public class DrawRndDigits { // draw a random integer, then take said element out private ArrayList<Integer> strings = new ArrayList<>(); private ArrayList<Integer> stringsSource = new ArrayList<>(); private Random rand = new Random(); public DrawRndDigits(int... values) {...
  2. fukurou

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

    class DrawRnd(vararg values: String) { // draw a random element, then take said element out private var strings = ArrayList<String>() private val stringsSource = ArrayList<String>() private val rand = Random() fun addElement(element: String) { strings.add(element)...
  3. fukurou

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

    class LGTypeConverter { private val r1: RegexUtil = RegexUtil() fun convertToInt(v1: String): Int { val temp: String = r1.extractRegex(enumRegexGrimoire.Integer, v1) return if (temp.isEmpty()) { 0 } else temp.toInt() } fun convertToDouble(v1...
  4. fukurou

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

    // returns expression of type theRegex from the string str2Check class RegexUtil { var regexDictionary: Hashtable<enumRegexGrimoire, String> = Hashtable<enumRegexGrimoire, String>() init { regexDictionary[enumRegexGrimoire.Email] =...
  5. fukurou

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

    enum class enumRegexGrimoire { Email, TimeStamp, Integer, Double_num, RepeatedWord, Phone, TrackingID, IPV4, Domain, Number, SecondlessTimeStamp, Date, FullDate, SimpleTimeStamp }
  6. fukurou

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

    class AXLHousing { fun decorate(str1: String?): String { // override me return "" } }
  7. fukurou

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

    class AXLearnability(tolerance: Int) { private var algSent = false // problems that may result because of the last deployed algorithm: var defcons = UniqueItemSizeLimitedPriorityQueue() // default size = 5 // major chaotic problems that may result because of the last deployed...
  8. fukurou

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

    I'm going to take a shit break
  9. fukurou

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

    public class TrgTolerance extends TrGEV3{ // this boolean gate will return true till depletion or reset() private int repeats = 0; private int maxrepeats; //2 recomended public TrgTolerance(int maxrepeats) { this.maxrepeats = maxrepeats; } public void...
  10. fukurou

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

    open class TrGEV3 { // advanced boolean gates with internal logic // these ease connecting common logic patterns, as triggers open fun reset() {} fun input(ear: String, skin: String, eye: String) {} open fun trigger(): Boolean { return false } }
  11. fukurou

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

    class AXKeyValuePair { var key = "" var value = "" constructor() constructor(key: String, value: String) { this.key = key this.value = value } override fun toString(): String { return "$key;$value" } }
  12. fukurou

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

    class AXGamification { // this auxiliary module can add fun to tasks, skills, and abilities simply by // tracking their usage, and maximum use count. var counter = 0 private set var max = 0 private set fun resetCount() { counter = 0 } fun...
  13. fukurou

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

    class AXFunnel { // funnel many inputs to fewer or one input // allows using command variations in skills private val dic: MutableMap<String, String> private var defaultStr: String init { dic = HashMap() defaultStr = "default" } fun...
  14. fukurou

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

    class AXCmdBreaker( // separate command parameter from the command var conjuration: String ) { fun extractCmdParam(s1: String): String { return if (s1.contains(conjuration)) { s1.replace(conjuration, "").trim { it <= ' ' } } else "" } }
  15. fukurou

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

    class AnnoyedQue(queLim: Int) { private val q1 = RefreshQ() private val q2 = RefreshQ() init { q1.limit = queLim q2.limit = queLim } fun learn(ear: String) { if (q1.contains(ear)) { q2.add(ear) return }...
  16. fukurou

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

    class RefreshQ : UniqueItemSizeLimitedPriorityQueue() { override fun removeItem(item: String) { super.elements.remove(item) } override fun add(item: String) { // FILO if (super.contains(item)) { removeItem(item) } super.add(item) } }
  17. fukurou

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

    package auxiliary_modules open class UniqueItemSizeLimitedPriorityQueue : UniqueItemsPriorityQue() { // items in the queue are unique and do not repeat // the size of the queue is limited var limit = 5 override fun add(item: String) { if (super.size() == limit) { super.poll()...
  18. fukurou

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

    class UniqueItemsPriorityQue : LGFIFO<String>() { // a priority queue without repeating elements override fun add(item: String) { if (!super.contains(item)) { super.add(item) } } override fun peak(): String { return super.peak() ?: return ""...
  19. fukurou

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

    open class LGFIFO<T> { //first in first out queue var elements = ArrayList<T>() open fun add(item: T) { elements.add(item) } fun size(): Int { return elements.size } open fun peak(): T? { return if (size() == 0) { null }...
  20. fukurou

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

    open class LGFIFO<T> { //first in first out queue var elements = ArrayList<T>() open fun add(item: T) { elements.add(item) } fun size(): Int { return elements.size } open fun peak(): T? { return if (size() == 0) { null }...
Top