This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Ausbildersprechtag</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15"/> | |
<meta name="mobile-web-app-capable" content="yes"> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sqlite3 = require('sqlite3').verbose(); | |
db = new sqlite3.Database('./users.db'); | |
db.serialize(function () { | |
db.run("CREATE TABLE IF NOT EXISTS users (" + | |
"id INTEGER PRIMARY KEY AUTOINCREMENT," + | |
"uuid VARCHAR (80) NOT NULL," + | |
"email VARCHAR (80) NOT NULL," + | |
"generated DATETIME," + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ormtest; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.Persistence; | |
/** | |
* Hello world! | |
* | |
*/ | |
public class App |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Arduino.h" | |
#include <DallasTemperature.h> | |
// Data wire is plugged into pin 21 on the ESP32 | |
#define ONE_WIRE_BUS 21 | |
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs) | |
OneWire oneWire(ONE_WIRE_BUS); | |
// Pass our oneWire reference to Dallas Temperature. | |
DallasTemperature DS18B20(&oneWire); | |
char temperatureCString[6]; | |
float tempC = 0.0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "esp_wpa2.h" | |
#include <WiFi.h> | |
#include <HTTPClient.h> | |
// SSID to connect to | |
static const char* ssid = "MMBBS-Intern"; | |
// Username for authentification | |
#define EAP_ID "tuttas" | |
#define EAP_USERNAME "tuttas" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --header "Content-Type: application/json" --header "x-aio-key: aio_dUnx007cL54aZqVs9jemddNy6hVj" --data "{\"value\":18}" https://io.adafruit.com/api/v2/jtuttas/feeds/fiae19/data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "esp_wpa2.h" | |
#include <WiFi.h> | |
// SSID to connect to | |
static const char* ssid = "MMBBS-Intern"; | |
// Username for authentification | |
#define EAP_ID "tuttas" | |
#define EAP_USERNAME "tuttas" | |
#define EAP_PASSWORD "geheim" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "esp_wpa2.h" | |
#include <WiFi.h> | |
// SSID to connect to | |
static const char* ssid = "MMBBS-Intern"; | |
// Username for authentification | |
#define EAP_ID "tuttas" | |
#define EAP_USERNAME "tuttas" | |
#define EAP_PASSWORD "geheim" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "esp_wpa2.h" | |
#include "WiFi.h" | |
// SSID to connect to | |
static const char *ssid = "MMBBS-Intern"; | |
// Username for authentification | |
#define EAP_ID "tuttas" | |
#define EAP_USERNAME "tuttas" | |
#define EAP_PASSWORD "geheim" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import paho.mqtt.client as mqtt | |
import json | |
from tweepy.streaming import StreamListener | |
from tweepy import OAuthHandler | |
from tweepy import Stream | |
#Variables that contains yours credentials to access Twitter API | |
access_token = "" | |
access_token_secret = "" | |
consumer_key = "" |