Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Wenzlaff IT-Berater

View GitHub Profile
@IT-Berater
IT-Berater / contracts...Gehirn.sol
Created Sep 20, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
View contracts...Gehirn.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4 <= 0.9;
/**
* @title Gehirn von Thomas Wenzlaff
* @dev Mein Smart Contract mit solidity zum Speichern von IQ auf der Blockchain
*/
contract Gehirn {
View .gitconfig
[user]
email = email@nospam.de
name = Vorname Nachname
[alias]
tree = log --graph --oneline --all
br = branch
unstage = reset HEAD --
last = log -1 HEAD
aa = add --all
View CsvView.java
package de.wenzlaff.ubidots;
import com.ubidots.Variable;
/**
* CSV Objekt für Variablen von Ubidots.
*
* @author Thomas Wenzlaff
*
*/
View UbidotsClient.java
package de.wenzlaff.ubidots;
import java.util.ArrayList;
import java.util.List;
import com.ubidots.ApiClient;
import com.ubidots.DataSource;
import com.ubidots.Variable;
/**
View Co2AmpelResourceTest.java
package de.wenzlaff;
import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;
import org.junit.jupiter.api.Test;
import io.quarkus.test.junit.QuarkusTest;
@QuarkusTest
View CO2AmpelResource.java
package de.wenzlaff;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/v1")
public class CO2AmpelResource {
View MqttCo2Client.java
package de.wenzlaff;
import java.time.LocalDateTime;
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken;
import org.eclipse.paho.client.mqttv3.MqttCallback;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.json.JSONArray;
@IT-Berater
IT-Berater / Corona.java
Created Mar 8, 2020
Corona - Covid-19 JSON Java Sample
View Corona.java
package corona;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.nio.charset.Charset;
import org.apache.commons.io.IOUtils;
import org.json.JSONException;
import org.json.JSONObject;
View RkiCoronaFallzahlenDeutschland.java
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
/**
* Beispiel Abfrage Coronavirus vom RKI.
@IT-Berater
IT-Berater / Love never fails.md
Last active Jan 21, 2019
"Die liebe versagt nie", "Love never fails", 2019