Some classes to showcase Java Iteratable<T>
and Iterator<E>
I've put everything in the same file by simplicity and declared inner classes static but I wouldn't recommend to do that in production code (separation of concerns).
function deleteComments() { | |
document.querySelectorAll('shreddit-profile-comment').forEach(el => { | |
comment_id = el.getAttribute('comment-id') | |
csrf_token = document.cookie.split("csrf_token=")[1].split(';')[0] | |
fetch("https://www.reddit.com/svc/shreddit/graphql", { | |
method: "POST", | |
headers: { | |
"Content-Type": "application/json" | |
}, |
{ | |
"Draft": true, | |
"Number": "123456789", | |
"IssuedOn": "01/01/1970", | |
"Due": "15/01/1970", | |
"Introduction": "Please receive this invoice with joy and cheerfulness.", | |
"Issuer": { | |
"Name": "Big D Energy", | |
"Address": "Rue de la Gaufre 777\n1234 Ville", | |
"Country": "Belgique", |
#!/bin/bash | |
# --- NEEDLE-HELP-START --- | |
# NAME | |
# makew - makew continuously run make upon source files changes. | |
# | |
# SYNOPSYS | |
# makew [TARGET ...] [--cmd <command|file>] [--no-cmd] [--no-git] [--gitignore] [--exclude <regex>] [-h|--help] | |
# | |
# DESCRIPTION | |
# makew calls make with the provided TARGET(s) (or none), and continue doing so whenever a source file changes. |
FROM docker.io/fluent/fluentd-kubernetes-daemonset:v1.16.5-debian-elasticsearch7-amd64-1.0 | |
FROM docker.io/postgres:15.2 | |
FROM foo:15.2 | |
FROM envoyproxy/envoy:v1 |
#!/bin/bash | |
set -e | |
HERE=$(dirname $(realpath $0)) | |
rm -rf local remote.git | |
git init --bare $HERE/remote.git | |
git clone $HERE/remote.git local |
import time | |
from collections import Counter | |
from dataclasses import dataclass, field | |
from hashlib import sha512 | |
from typing import List | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from tqdm import trange |
from typing import Any, Sequence | |
def ascii_table(rows: Sequence[Sequence[Any]]) -> str: | |
""" | |
Format the rows in an ascii table. | |
First row is considered to be the header | |
Numbers are right justified, everything else is left justified | |
See example below: | |
package be.unamur.info.b314.compiler.main; | |
import org.apache.commons.io.FileUtils; | |
import org.junit.Rule; | |
import org.junit.Test; | |
import org.junit.rules.TemporaryFolder; | |
import org.junit.runner.RunWith; | |
import org.junit.runners.Parameterized; | |
import org.junit.runners.Parameterized.Parameters; |
; A set of scenario to record in training mode. | |
; place focus on button to start record then press shortcut for given scenario | |
F11::Suspend, Toggle | |
jump(direction) | |
{ | |
if (direction = "left") | |
{ | |
Send, {Left Down} |