double x = 0.2F;
double x = 0.20000000298023224D;
addEventListener("fetch", e => { | |
if (e.request.destination !== "image" || // Only do this when requesting an image | |
request.mode === "no-cors") // We don't know the status of no-cors images | |
return; | |
e.respondWith((async () => { | |
try { | |
const response = await fetch(e.request); | |
if (response.ok) | |
return response; |
import org.jetbrains.compose.compose | |
import org.jetbrains.compose.desktop.application.dsl.TargetFormat | |
buildscript { | |
dependencies { | |
classpath("com.guardsquare:proguard-gradle:7.2.1") | |
} | |
} | |
repositories { |
import RickRoll.writer | |
object RickRoll { var writer: (String) -> Unit = { println(it) } } | |
val Never = RickAstleyNever // to get different highlighting color | |
object RickAstleyNever { | |
infix fun gonna(x: give) = give | |
infix fun gonna(x: let) = let | |
infix fun gonna(x: run) = run | |
infix fun gonna(x: make) = make | |
infix fun gonna(x: say) = say |
var s=%1$s%2$s%1$s;printf(s,(char)34,s);/exit";printf(s,(char)34,s);/exit
The examples below use the base ssl configuration found here: SSLConfig of the library: SSLContext Kickstart
Java
import org.gradle.api.DefaultTask | |
import org.gradle.api.Project | |
import org.gradle.api.artifacts.Configuration | |
import org.gradle.api.artifacts.ConfigurationContainer | |
import org.gradle.api.artifacts.Dependency | |
import org.gradle.api.artifacts.ExternalModuleDependency | |
import org.gradle.api.artifacts.ProjectDependency | |
import org.gradle.api.artifacts.dsl.DependencyHandler | |
import org.gradle.api.artifacts.result.ResolvedArtifactResult | |
import org.gradle.api.artifacts.result.UnresolvedArtifactResult |
// implementation("org.zeroturnaround:zt-exec:1.12") LIBRARY USAGED | |
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.collectAsState | |
import kotlin.coroutines.resume | |
import kotlinx.coroutines.channels.awaitClose | |
import kotlinx.coroutines.flow.Flow | |
import kotlinx.coroutines.flow.callbackFlow | |
import kotlinx.coroutines.flow.collect | |
import kotlinx.coroutines.flow.flow |
/* | |
* MIT License | |
* | |
* Copyright (c) 2021 Brice Dutheil <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import java.io.IOException; | |
import java.net.http.HttpClient; | |
import java.net.http.HttpRequest; | |
import java.net.http.HttpResponse; | |
import java.net.http.HttpResponse.BodyHandler; | |
import java.time.Duration; | |
import java.util.concurrent.CompletableFuture; |