Skip to content

Instantly share code, notes, and snippets.

View waigel's full-sized avatar

Johannes Waigel waigel

  • Haufe Group / lexoffice
  • Germany
  • 14:51 (UTC +02:00)
View GitHub Profile
@waigel
waigel / domains.tf
Last active April 19, 2023 16:12
terraform-cloudflare
# Create your DNS records in YAML files in the domains directory
# Create a file for your domain in the folder domains/ the suffix should be .yml
# Example: domains/example.com.yml
#
# domain: example.com
# provider: cloudflare
# orderedBy: waigel
# createdAt: 2023-04-19
# zoneId: 1234567891
# records:
@waigel
waigel / vad-java.java
Created April 19, 2023 13:30
vad-onnxruntime-java
import ai.onnxruntime.OnnxTensor;
import ai.onnxruntime.OrtEnvironment;
import ai.onnxruntime.OrtException;
import ai.onnxruntime.OrtSession;
import org.junit.jupiter.api.Test;
import javax.sound.sampled.*;
import java.io.File;
import java.io.IOException;
import java.nio.FloatBuffer;
import java.nio.LongBuffer;
@waigel
waigel / bank-account-number-validation.js
Last active January 28, 2021 00:30
Validate German bank account number
/**
* This scriipt validate the checksum of German banking account numbers.
* Account number is a substring from the IBAN
*/
const crosstotal = (number) => {
let qs = 0;
while (number > 0) {
qs += number % 10;
number = Math.floor(number / 10);
***ERROR:*** Thu Jan 1 00:00:28 1970.569
HealthService(412): ./src/ReadWriteLogConfigFile.cpp:991 Error setting HCI Dump trace file size, requested: 0
***ERROR:*** Thu Jan 1 00:00:37 1970.997
DataAccessService(442): ./src/DASUtils.cpp:792 updateTableInDatabase failed to createColumnNameListFromDbFile
***ERROR:*** Wed Dec 23 21:40:53 2020.048
ServiceDataManager(442): ./src/ServiceDataManager.cpp:830 subscribeForObservations Failed to subscribe for ""