Skip to content

Instantly share code, notes, and snippets.

@aitsuki
aitsuki / centos-android-sdkmanager-install.sh
Last active August 2, 2024 09:19
Install android sdkmanager on centos with root user.
#!/usr/bin/env sh
# install openjdk
rpm --import https://yum.corretto.aws/corretto.key
curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo
echo ""
echo "Please choose the Java version: (Gradle 8.0 requires Java 17)"
echo "1: java-11-openjdk-devel"
echo "2: java-17-openjdk-devel"
@aitsuki
aitsuki / CenterTopAppBar
Last active October 5, 2021 22:03
Android Jetpack Compose 标题居中的 TopAppBar
package com.aitsuki.wanandroid.widget
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
@aitsuki
aitsuki / AStarDemo.java
Last active February 3, 2021 13:09
[AStar寻路]为游戏脚本编写的A星寻路功能 #算法 #游戏
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.lang.StringBuilder;
/**
* Created by AItsuki on 2017/6/20.
* A星自动寻路功能
*
*