Skip to content

Instantly share code, notes, and snippets.

View marcelkliemannel's full-sized avatar
🚀

Marcel Kliemannel marcelkliemannel

🚀
View GitHub Profile
import com.bastiaanjansen.otp.HMACAlgorithm
import com.bastiaanjansen.otp.TOTP
import com.j256.twofactorauth.TimeBasedOneTimePasswordUtil
import dev.turingcomplete.kotlinonetimepassword.HmacAlgorithm
import dev.turingcomplete.kotlinonetimepassword.TimeBasedOneTimePasswordConfig
import dev.turingcomplete.kotlinonetimepassword.TimeBasedOneTimePasswordGenerator
import java.time.Duration
import java.time.Instant
import java.util.concurrent.TimeUnit
import javax.crypto.spec.SecretKeySpec
Class name Occurrences Repositories
Solution 2375 14
MainActivity 1862 872
User 1225 314
Main 1078 231
Application 1064 147
ExampleUnitTest 853 323
Utils 836 424
Person 723 149
ApplicationTest 687 313
@marcelkliemannel
marcelkliemannel / popularJavaClassNamePrefixes.csv
Last active February 1, 2022 17:22
Popular Java class name prefixes.
Prefix Occurrences Repositories
Test 41507 866
Abstract 17321 822
Default 11733 820
Base 6852 981
User 6690 579
File 6533 782
My 6462 573
Simple 6299 808
Data 5784 624
@marcelkliemannel
marcelkliemannel / popularJavaClassNamePostfixes.csv
Last active February 1, 2022 17:22
Popular Java class name postfixes.
Postfix Occurrences Repositories
Test 182596 1605
Impl 28125 818
Tests 24745 386
Factory 21902 975
Exception 19745 1018
Service 17703 908
Utils 14418 1241
Handler 13984 939
Provider 13835 773
@marcelkliemannel
marcelkliemannel / popularJavaSrcDirectoryNames.csv
Created January 29, 2022 08:35
Common names of "src/*/java" directories in the most popular GitHub Java repositories.
name occurrences
main 747396
test 267670
gen 10511
generated 7945
androidTest 5510
net 1862
distributedTest 1271
internalClusterTest 1116
integrationTest 1108
@marcelkliemannel
marcelkliemannel / KotlinDelimiters.kt
Last active January 30, 2021 12:02
Kotlin Delimiters
class MyClass {
// -- Companion Object -------------------------------------------------------------------------------------------- //
// -- Variables --------------------------------------------------------------------------------------------------- //
// -- Initialization ---------------------------------------------------------------------------------------------- //
// -- Exported Methods -------------------------------------------------------------------------------------------- //
// -- Private Methods --------------------------------------------------------------------------------------------- //
// -- Inner Type -------------------------------------------------------------------------------------------------- //
}
@marcelkliemannel
marcelkliemannel / JavaDelimiters.java
Last active August 21, 2020 17:04
Java Types Delimiters
public class MyClass {
// -- Fields ----------------------------------------------------------------------------------------------------- //
// -- Initialization --------------------------------------------------------------------------------------------- //
// -- Exposed Methods -------------------------------------------------------------------------------------------- //
// -- Private Methods -------------------------------------------------------------------------------------------- //
// -- Inner Type ------------------------------------------------------------------------------------------------- //
// -- End of Class ----------------------------------------------------------------------------------------------- //
}
public interface MyInterface {