README.md (1521B)
1 # FOP Macros 2 3 Collection of macros to to help during the FOP exam. 4 If any macro breaks your typing, 5 press and release `ctrl + shift + alt` to fix those keys. 6 7 ## Getting started 8 9 1. Install [sxhkd](https://wiki.archlinux.org/index.php/Sxhkd) 10 and [xdotool](https://wiki.archlinux.org/index.php/Xdotool#Automation). 11 12 1. Run `sxhkd -c macros.sxhkd` in the background. 13 14 ## Macros 15 16 ### aspekts of oop 17 `ctrl + shift + alt + a`: 18 [Four buzz words](https://www.indeed.com/career-advice/career-development/what-is-object-oriented-programming) 19 professors love to hear. 20 21 ### filter map 22 `ctrl + shift + alt + f + m`: 23 Racket implementation of 24 [filter map](https://docs.racket-lang.org/reference/pairs.html?q=map#%28def._%28%28lib._racket%2Flist..rkt%29._filter-map%29%29). 25 You might need to inline `f` (the mapper) and `p` (the predicate). 26 Remove `f` to get `filter` or `p` to get `map`. 27 28 ### interface 29 `ctrl + shift + alt + i`: 30 Standard [java interface](https://www.w3schools.com/java/java_interface.asp) 31 with five [methods](https://www.w3schools.com/java/java_methods.asp). 32 33 ### class 34 `ctrl + shift + alt + c`: 35 Standard [java class](https://www.w3schools.com/java/java_classes.asp) 36 with a lot of boilerplate. 37 38 ### exception 39 `ctrl + shift + alt + e`: 40 Standard [java exception](https://www.tutorialspoint.com/java/java_exceptions.htm) 41 with a costume [constructor](https://www.w3schools.com/java/java_constructors.asp). 42 43 ### listitemmethod 44 `ctrl + shift + alt + l`: 45 A Method to work with two `ListItem<T>` "pointers" without recursion.