- Add the chromium-vaapi dev repository:
sudo add-apt-repository ppa:saiarcot895/chromium-beta sudo apt-get update
- Install Chromium-vaapi:
This file contains 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 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 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 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 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 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" |