This file contains 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; | |
import java.util.LinkedList; | |
public class TestMenge { | |
LinkedList<String> StringList = new LinkedList<>(); | |
public String[] getElements() { | |
return (String[]) StringList.toArray(); | |
} |
This file contains 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 javax.swing.*; | |
import java.awt.*; | |
public class SetFontMonospaced { | |
public static final String TEXT = " A C G T\nA * - - -\nC - * - -\nG - - * -\nT - - - *"; | |
public static void main(String[] args) { | |
for (int i = 1; i <= 2; i++) { | |
JFrame frame = new JFrame("Fenster " + i); | |
frame.setSize(640, 360); |
This file contains 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
$(".cell.c4") // select every table cell in fourth column (group) | |
.filter((k, e) => $(e).text() !== "Gruppe 2") // filter participants not in specified group | |
.parent().find(".c1") // select table cell in first column (name) | |
.filter((k, e) => $(e).text()) // filter rows with empty names | |
.map((k, e) => "rm -rf " + $(e).text().trim().replaceAll(" ", "\\ ") + "_*") // map to linux rm command | |
.toArray() // convert to javascript array | |
.reduce((a, v) => a + v + "\n", "") // reduce to single string |
This file contains 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
#include "Touch.h" | |
#if defined(_USING_HID) | |
#define CONTACT_COUNT_MAXIMUM 10 | |
#define REPORTID_TOUCH 0x04 | |
#define LSB(v) ((v >> 8) & 0xff) | |
#define MSB(v) (v & 0xff) |