This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.relevantpackagename.controller.util; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| /** | |
| * This class is used to print the relevant stack trace. | |
| * | |
| * <p>Configure by setting {@link #PACKAGENAME} to the package name you want to focus on. | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.NoSuchElementException; | |
| public class RDVL<T> { // Ring doppelt verkettete Liste | |
| private Listenelement current; // Zeiger auf Start der Liste != first weil ein Ring keinen wirklichen Anfang | |
| // hat | |
| private int size = 0; | |
| public class Listenelement { | |
| Listenelement prev; | |
| Listenelement next; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Iterator; | |
| public class DynamicArray<I> implements Iterable<I> { | |
| class ArrayIterator implements Iterator<I> { | |
| int bookmark = 0; | |
| @Override | |
| public boolean hasNext() { | |
| return bookmark<size()-1; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"version":1,"resource":"file:///Users/horus/Documents/testrust/experiments/src/main.rs","entries":[{"id":"EEM9.rs","timestamp":1660063147955},{"id":"EVOB.rs","timestamp":1660075929929},{"id":"oGUo.rs","timestamp":1660076313239},{"id":"aAhK.rs","timestamp":1660076324435},{"id":"noPJ.rs","timestamp":1660076343222},{"id":"IBJD.rs","timestamp":1660076469847},{"id":"zqW7.rs","timestamp":1660076602602},{"id":"brqK.rs","timestamp":1660076785485},{"id":"hXVA.rs","timestamp":1660076875727},{"id":"mFvF.rs","timestamp":1660076897603},{"id":"pVmt.rs","source":"undoRedo.source","timestamp":1660076905425},{"id":"NuEu.rs","timestamp":1660076922190},{"id":"SsK9.rs","timestamp":1660076945187},{"id":"SJ3h.rs","timestamp":1660077058863},{"id":"vwIf.rs","timestamp":1660127444041},{"id":"4Cs2.rs","timestamp":1660127585899},{"id":"ThZY.rs","timestamp":1660127624489},{"id":"JB2d.rs","timestamp":1660127748473},{"id":"KY10.rs","timestamp":1660127766131},{"id":"Kp8L.rs","timestamp":1660127807727},{"id":"wqau.rs","timestamp":166012783 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.Arrays; | |
| public class Flipswitch { | |
| public static void main(String[] args) { | |
| int[] rechts = { 1, 2, 3, 4, 5, 6 }; | |
| int[] links = { 147, 99, 31, 231, 142, 412, 421, 421, 241 }; | |
| int[] zip = flipswitch(links, rechts); | |
| System.out.println(Arrays.toString(links)); | |
| System.out.println(Arrays.toString(rechts)); | |
| System.out.println("Reissverschluss:"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if [ $# -ne 2 ]; then | |
| echo "this script works for ~/.ssh/ and uses the filename from \n | |
| your first argument and the server from your second argument" | |
| echo "example: $1 keyname_rsa [email protected]" | |
| exit 1 | |
| fi | |
| #not checking if second argument contains @. | |
| echo "generating ssh-key with specified name:" | |
| echo ~/.ssh/$1 | ssh-keygen |