Skip to content

Instantly share code, notes, and snippets.

View wuseal's full-sized avatar
😆
Every day is exciting!

Seal wuseal

😆
Every day is exciting!
  • Hangzhou
View GitHub Profile
@wuseal
wuseal / CommandLine.kt
Last active December 25, 2021 14:35
Kotlin Execute Command Line | Shell Quick use extension functions
import java.io.File
import java.util.concurrent.TimeUnit
data class BashResult(val exitCode: Int, val stdout: Iterable<String>, val stderr: Iterable<String>) {
fun sout() = stdout.joinToString("\n").trim()
fun serr() = stderr.joinToString("\n").trim()
}
@wuseal
wuseal / init.gradle.kts
Last active March 16, 2024 03:22
国内全局加速Gradle依赖下载速度配置,把这个文件放到~/.gradle目录下既可
/**
* Created by Seal.Wu on 2020/7/11
* Description: Set up mirrors for Gradle Globally
*/
val MAVEN_REPOSITORY_URL = "https://maven.aliyun.com/repository/central"
val JCENTER_REPOSITORY_URL = "https://maven.aliyun.com/repository/jcenter"
val GOOGLE_REPOSITORY_URL = "https://maven.aliyun.com/repository/google"
val GRADLE_PLUGIN_REPOSITORY_URL = "https://maven.aliyun.com/repository/gradle-plugin"
gradle.settingsEvaluated {
@wuseal
wuseal / txt
Created July 5, 2017 06:50
hello
hello