This file contains 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
/* | |
* Created by Attila Kruchió on 2022. 01. 09. 18:24 | |
* attila.kruchio.dev@gmail.com | |
* | |
* Copyright (c) 2022. | |
* All rights reserved. | |
*/ | |
package com.attila.kruchio.android.core.ext |
- you are running SensorsIot/IOTstack with InfluxDB as one of the containers
- you want to enable authentication for your InfluxDB databases.
Note: This tutorial is specific to SensorsIot/IOTstack.
This file contains 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
class A { | |
fun shout() = println("go team A!") | |
} | |
class B { | |
fun shout() = println("go team B!") | |
} | |
interface Shoutable { | |
fun shout() |
This file contains 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 java.awt.EventQueue; | |
import java.io.*; | |
import java.math.BigInteger; | |
import java.util.ArrayList; | |
import java.util.Random; | |
import java.util.Scanner; | |
/** | |
* Quick and dirty implementation of the RSA algorithm |
This file contains 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
Manifest mf = new Manifest(); | |
mf.read(Thread.currentThread().getContextClassLoader().getResourceAsStream("META-INF/MANIFEST.MF")); | |
Attributes atts = mf.getMainAttributes(); | |
System.out.println("Version: " + atts.getValue("Implementation-Version")); | |
System.out.println("Build: " + atts.getValue("Implementation-Build")); |