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
from scipy.interpolate import interp2d | |
def matrix_interp(): | |
mat = numpy.array([[70.45, 0, 21.78, 0], | |
[0, 0, 0, 0], | |
[105.12, 0, 1000.45, 0], | |
[0, 0, 0, 0]]) | |
ix = numpy.where(mat != 0) |
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.Dispatchers.Default | |
import kotlinx.coroutines.joinAll | |
import kotlinx.coroutines.launch | |
import kotlinx.coroutines.runBlocking | |
import mu.KotlinLogging | |
import java.lang.Thread.sleep | |
private val logger = KotlinLogging.logger {} | |
fun main() { |
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
version: '3' | |
services: | |
confluence: | |
image: idalko/atlassian-confluence | |
environment: | |
- DISABLE_NOTIFICATIONS=TRUE | |
- CONF_ARGS=-Datlassian.plugins.enable.wait=300 | |
volumes: |
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
Install globally a lib with cmake to make it avaiable for C++ project | |
Easiest way to add a lib to c++ project. | |
Download source code under `Downloads`: | |
```sh | |
cd /home/geoffrey/Downloads/mylib | |
cmake -DBUILD_SHARED_LIBS=ON . | |
make install | |
``` |
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
package demo | |
import org.geotools.feature.DefaultFeatureCollection | |
import org.geotools.feature.simple.SimpleFeatureBuilder | |
import org.geotools.feature.simple.SimpleFeatureTypeBuilder | |
import org.geotools.referencing.crs.DefaultGeographicCRS.WGS84 | |
import org.locationtech.jts.geom.Coordinate | |
import org.locationtech.jts.geom.GeometryFactory | |
import org.locationtech.jts.geom.Point |
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 io.ktor.client.* | |
import io.ktor.client.engine.cio.* | |
import io.ktor.client.features.* | |
import io.ktor.client.features.auth.* | |
import io.ktor.client.features.auth.providers.* | |
import io.ktor.client.features.json.* | |
import io.ktor.client.features.logging.* | |
import io.ktor.client.request.* | |
import io.ktor.http.* | |
import io.ktor.http.ContentType.Application.Json |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll] | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell] | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open] | |
"MuiVerb"="@photoviewer.dll,-3043" | |
[HKEY_CLASSES_ROOT\Applications\photoviewer.dll\shell\open\command] | |
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ | |
00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,72,00,75,00,\ | |
6e,00,64,00,6c,00,6c,00,33,00,32,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,\ | |
00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,00,6c,00,65,00,73,00,\ |
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
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init --path)" |
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 java.util.* | |
import javax.crypto.Cipher.* | |
import javax.crypto.spec.IvParameterSpec | |
import javax.crypto.spec.SecretKeySpec | |
fun main() { | |
val str = "Hello World !" | |
val encryptionKey = "1mfNnQ8CSdxHOhwO" | |
println(str) | |
val encoded = encrypt(str, encryptionKey) |
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 java.io.File | |
import java.lang.ProcessBuilder.Redirect.INHERIT | |
import java.nio.file.Files | |
import java.util.concurrent.TimeUnit.MINUTES | |
import kotlin.io.path.Path | |
const val ROOT = "/home/geoffrey/Desktop/gitlab" | |
fun main() = Files | |
.walk(Path(ROOT), 1) |
OlderNewer