Skip to content

Instantly share code, notes, and snippets.

/**
* _____________________Passwords_____________________
* | | | | | | |
* | Id* | Service | Type | Login | Email | Password |
* |_____|_________|______|_______|_______|__________|
* | | | | | | |
* | | | | | | |
* | | | | | | |
*
*/
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
public void remove(String s) {
if(!this.contains(s)) {
return;
}
int bucketNr = hash(s) % N;
Item old = null;
Item cur = buckets[bucketNr];
if (cur == null) return;
public int sumAllValues() {
// TODO: implement
int sum = 0;
for (int h=0; h < N; h++) {
for (KeyValue kv = buckets[h]; kv != null; kv = kv.next) {
try {
sum += Integer.parseInt(kv.value);
} catch (Exception e) {
System.out.println(e);
}

b)

Welche Datentypen können basierend auf dem gegebenen Template auf dem Stack (OperandStack) liegen und wie groß ist der Stack?

Basierend auf dem gegebenen Template können sich folgende Datentypen auf dem Stack befinden:

  • NamedObjects
  • Int
  • Str
  • Def
DATE=$(date +%F_%H%M%S_)
scrot -s ~/screenshots/$(echo $DATE)screenshot.png;
sleep 1;
scp ~/screenshots/$(echo $DATE)screenshot.png kroovy.de:/var/www/screenshots/;
echo -n "https://screenshots.kroovy.de/$(echo $DATE)screenshot.png" | xsel --clipboard;
pactl set-sink-volume 0 150%
if [[ $COLUMNS -gt 80 && $LINES -gt 20 ]]; then
screenfetch;
fi
Image* make_image(int width, int height, int bytes_per_pixel) {
// todo: implement
if (width == 0 || height == 0) return NULL;
Image* i = xmalloc(sizeof(Image));
i->width = width;
i->height = height;
i->bytes_per_pixel = bytes_per_pixel;
g2.setColor(Color.RED);
ComplexNumber c = new ComplexNumber(-2.1, -1.1);
ComplexNumber z = new ComplexNumber(1, 0);
for (int y=0; y < this.getHeight(); y++) {
for (int x=0; x < this.getWidth(); x++) {
for (int n=0; n < 100; n++) {
for (int t = 0; t < max; t++) {
ComplexNumber z = z0;