- Add the chromium-vaapi dev repository:
sudo add-apt-repository ppa:saiarcot895/chromium-beta sudo apt-get update - Install Chromium-vaapi:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Author: Salomon BRYS | |
| License: MIT (do whatever you want with that code!) | |
| Allows using Common Table Expressions with Jetbrains Exposed JDBC. | |
| Provides primitives that implement CTEs, and a DSL that allows simpler usage. | |
| Inspired by https://github.com/bog-walk/bootrack/blob/main/backend-jdbc/src/main/kotlin/dev/bogwalk/bootrack/backend/repository/custom/WithCTE.kt | |
| /!\ Because the result rows of a CTE are referencing the With temporary table(s) fields and not the original query | |
| table(s) fields, the results in a ResultRow are not easily accessible: you need to use either CTETable.get or wrap a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // If you are using this, please upvote this issue: https://youtrack.jetbrains.com/issue/KT-21644 | |
| fun Double.toString( | |
| minDecimals: Int, | |
| maxDecimals: Int = minDecimals, | |
| minIntegrals: Int = 1, | |
| addPositiveSign: Boolean = false, | |
| ): String { | |
| require(minDecimals <= maxDecimals) { "minDecimals > maxDecimals" } | |
| require(minDecimals >= 0) { "minDecimals < 0" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.google.gson.JsonObject | |
| import com.google.gson.JsonParser | |
| import com.google.gson.JsonPrimitive | |
| import java.net.HttpURLConnection | |
| import java.net.URL | |
| import kotlin.io.path.Path | |
| import kotlin.io.path.writer | |
| val prefix = "https://github.githubassets.com/images/icons/emoji/unicode/" | |
| val suffix = ".png?v8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.kodein.di.* | |
| import org.kodein.di.bindings.Scope | |
| import org.kodein.di.bindings.ScopeRegistry | |
| import org.kodein.di.bindings.StandardScopeRegistry | |
| import java.util.concurrent.ConcurrentHashMap | |
| import java.util.concurrent.atomic.AtomicReference | |
| enum class Environment(val baseUrl: String) { | |
| DEBUG("http://localhost"), | |
| PROD("https://api.awesome-service.com") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| [[ -z "$TARGET" ]] && echo "Please set the PLATFORM variable" && exit 1 | |
| mkdir -p build/$TARGET | |
| cd build/$TARGET | |
| cmake ../../native-lib | |
| cmake --build . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import kotlinx.coroutines.* | |
| import kotlinx.coroutines.channels.actor | |
| import kotlinx.coroutines.sync.Mutex | |
| import kotlinx.coroutines.sync.Semaphore | |
| import kotlinx.coroutines.sync.withLock | |
| import kotlinx.coroutines.sync.withPermit | |
| import java.util.concurrent.locks.ReentrantLock | |
| import kotlin.concurrent.withLock | |
| import kotlin.system.measureTimeMillis |
Founded in 2018, with headquarters in Paris, France, Kodein ambition is to create the first Kotlin expertise center in Europe. We address needs of developers, QA, support, sales, marketing and design teams to help them build, test and deploy their Kotlin projects with the best customer experience.
This goal is centered around 3 axes :
- Consulting and expertise in architecture and development;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import javafx.application.Platform; | |
| import javafx.collections.ObservableList; | |
| import javafx.scene.control.SelectionMode; | |
| import javafx.scene.control.TableView; | |
| import java.util.HashSet; | |
| import java.util.function.Consumer; | |
| /** | |
| * TableView that allows multi-selection by default (without holding the control key) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| JHOME=$(pwd) | |
| for jbin in jar java javac javadoc javah javap javaws jvisualvm keytool; do | |
| if [ ! -x $JHOME/bin/$jbin ]; then | |
| echo "ERROR: Cannot find: $JHOME/bin/$jbin" | |
| else | |
| update-alternatives --install "/usr/bin/$jbin" "$jbin" "$JHOME/bin/$jbin" 1 | |
| update-alternatives --set "$jbin" "$JHOME/bin/$jbin" |