Skip to content

Instantly share code, notes, and snippets.

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;
if [[ $COLUMNS -gt 80 && $LINES -gt 20 ]]; then
screenfetch;
fi
pactl set-sink-volume 0 150%
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;

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
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);
}
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;
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
/**
* _____________________Passwords_____________________
* | | | | | | |
* | Id* | Service | Type | Login | Email | Password |
* |_____|_________|______|_______|_______|__________|
* | | | | | | |
* | | | | | | |
* | | | | | | |
*
*/
/**
* download: http://central.maven.org/maven2/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar
*
* compile: javac -cp .:gson-2.8.0.jar Account.java
* run : java -cp .:gson-2.8.0.jar Account
*/
import com.google.gson.Gson;
public class Account {