Skip to content

Instantly share code, notes, and snippets.

View jan-tennert's full-sized avatar

Jan Tennert jan-tennert

View GitHub Profile
@jan-tennert
jan-tennert / graalvm_pom.xml
Last active June 19, 2021 20:44
JDK 11+ Kotlin + TornadoFX (+ JavaFX) + GraalVM build file (Windows: DLLs you probably need in the same directory as the exe file: https://drive.google.com/file/d/1heqtORvUaIfshxQ59Dhp-fBiziF_WPHK/view?usp=sharing)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>tornadofx-maven-project</artifactId>
<version>1.0</version>
<packaging>jar</packaging>
@jan-tennert
jan-tennert / native_google_auth.md
Last active April 7, 2025 13:18
Guide: Native Google Auth on Android using Compose Auth

Native Google Auth on Android using Compose Auth

Supabase supports different OAuth providers including Google. On Android there are multiple libraries to use Native Google Auth and figuring out how to use them with Supabase can be complicated! Luckily, there is a supabase-kt plugin which handles everything for you. In this guide you will learn how integrate Compose Auth into your Jetpack Compose Android App.

image

Add Compose Auth to your app

Gradle KTS

@jan-tennert
jan-tennert / phone_auth.md
Created September 24, 2023 09:22
Phone Authentication with Kotlin

Phone Authentication with Kotlin

Phone Authentication is another method of Authentication in Supabase. The Kotlin library provides a easy way to integrate Phone Auth in your App.

Setting up a SMS provider

Before you can try out Phone Auth, you have to setup a SMS provider in your Supabase Dashboard. There you can also customize the SMS message and the OTP, the user receives.

Signing up with a Phone number

@jan-tennert
jan-tennert / ui.rs
Created October 7, 2023 11:01
rust
pub fn system_ui(
mut egui_context: EguiContexts,
mut star_query: Query<(
&Name,
&Children,
&mut Selectable,
&mut Visibility,
With<Star>,
Without<Planet>,
Without<Planet>
@jan-tennert
jan-tennert / file.rs
Last active October 11, 2023 18:30
asdasdasdsa
pub fn update_position(
mut query: Query<(Entity, &Mass, &mut Acceleration, &mut Velocity, &mut SimPosition, &mut Transform)>,
time: Res<Time>,
speed: Res<Speed>,
selected_entity: Res<SelectedEntity>,
) {
let delta = time.delta_seconds() / 10.0;
for _ in 0..9 {
let mut other_bodies: Vec<(&Mass, Mut<Acceleration>, Mut<SimPosition>)> = Vec::new();
for (_, mass, mut acc, _, sim_pos, _) in query.iter_mut() {