Search results

  1. owly

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

    public class SpiderSense { // enables event prediction private Boolean spiderSense = false; private UniqueItemSizeLimitedPriorityQueue events = new UniqueItemSizeLimitedPriorityQueue(); private UniqueItemSizeLimitedPriorityQueue alerts = new UniqueItemSizeLimitedPriorityQueue()...
  2. owly

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

    my_dict.pop('key', None)
  3. owly

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

    public class Catche { private Hashtable<String,String> dic1 = new Hashtable<>(); private int limit = 3; public void setLimit(int limit) { this.limit = limit; } public int getLimit() { return limit; } public Boolean containsKey(String str1){...
  4. owly

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

    public 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...
  5. owly

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

    UniqueItemSizeLimitedPriorityQueue seems to mug RepeatedElements so we don't need the later
  6. owly

    [MEDIA]

  7. owly

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

    public class Map { private Hashtable<String,String> pointDescription = new Hashtable<>(); private Hashtable<String,String> descriptionPoint = new Hashtable<>(); private LGPointInt currentPosition = new LGPointInt(); private RegexUtil regexUtil = new RegexUtil(); public void...
  8. owly

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

    public class InputFilter { // filter out non-relevant input // or filter in relevant data public String filter(String ear, String skin, String eye){ // override me return ""; } }
  9. owly

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

    public class EV3DaisyChainAndMode extends TrGEV3{ // this class connects several logic gates triggers together private ArrayList<TrGEV3> trgGates = new ArrayList<TrGEV3>(); public EV3DaisyChainAndMode(TrGEV3... gates) { for (TrGEV3 gate : gates) {...
  10. owly

    [MEDIA]

  11. owly

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

    public class ForcedLearn { // remembers key inputs because they start with keyword // also can dispense key inputs public String keyword = "say"; private LGFIFO<String> p1 = new LGFIFO<String>(); private RegexUtil ru = new RegexUtil(); private int queLimit = 5; public...
  12. owly

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

    import java.util.ArrayList; import java.util.Random; public class Responder { // simple random response dispenser private ArrayList<String> responses = new ArrayList<String>(); private Random rand = new Random(); public Responder(String... replies) { for (int i = 0; i <...
  13. owly

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

    public class Cycler { // cycles through numbers limit to 0 non-stop private int cycler = 0; private int limit; public Cycler(int limit) { super(); this.limit = limit; cycler = limit; } public int getLimit() { return limit; }...
  14. owly

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

    public class CombinatoricalUtils { public ArrayList<String> result; public ArrayList<String> getResult() { return result; } private void generatePermutations(ArrayList<ArrayList<String>> lists, List<String> result, int depth, String current) { if (depth ==...
  15. owly

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

    100 +1 AlgDispenser +2 AXFriend +3 AXLearnability +4 AXPassword +5 ButtonEngager +6 Catche +7 CombinatoricalUtils +8 Cycler +9 DrawRnd +10 EmoDetectorCurious +11 EmoDetectorHappy +12 EmoDetectorStressed +13 ForcedLearn +14 InputFilter +15 LGTypeConverter +16 Map +17 Responder +18...
  16. owly

    AXPython

    https://medium.com/@steveYeah/using-generics-in-python-99010e5056eb
  17. owly

    AXPython

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