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
data class Response(val some: String, val data: Int) | |
data class ErrorResponse(val error: String, val some: String, val random: Int) | |
data class Request(val etc: String) | |
val url = "https://my-service.com/some/endpoint" | |
fun simple() { | |
val (dto, status) = service.post<Response>(url) { | |
it.bodyValue(Request("test")) | |
} |
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.io.RandomAccessFile | |
import java.nio.ByteBuffer | |
import java.security.KeyFactory | |
import java.security.KeyPairGenerator | |
import java.security.SecureRandom | |
import java.security.spec.PKCS8EncodedKeySpec | |
import java.security.spec.X509EncodedKeySpec | |
import javax.crypto.Cipher | |
import javax.crypto.spec.IvParameterSpec |
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.* | |
import java.util.zip.ZipEntry | |
import java.util.zip.ZipOutputStream | |
fun main() { | |
val sourcePath = "toZip" | |
val outputStream = ByteArrayOutputStream() | |
try { |
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
// | |
// Created by romain-p on 17/10/2021. | |
// | |
#include "Player.h" | |
#include "Opcodes.h" | |
#include "Battleground.h" | |
#include "BattlegroundMgr.h" | |
#include "ScriptMgr.h" | |
#include <unordered_map> |
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
<loadData | |
file="t_famille.csv" relativeToChangelogFile="true" | |
quotChar=""" | |
seperator="," | |
tableName = "T_FAMILLE" > | |
<column header="FAM_IDENT" type="numeric"/> | |
<column header="FAM_INTLOTEXP" type="string"/> | |
<column header="FAM_INTLOTIMP" type="string"/> | |
<column header="FAM_REFEXTERNE" type="string"/> | |
<column header="FAM_CODE" type="string"/> |
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
<profile> | |
<id>skipInstall</id> | |
<activation> | |
<property> | |
<name>maven.install.skip</name> | |
<value>true</value> | |
</property> | |
</activation> | |
<build> | |
<pluginManagement> |
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 fr.idfm.sb.payment.client.vault.http; | |
import feign.RequestInterceptor; | |
import feign.RequestTemplate; | |
import fr.idfm.sb.payment.client.VaultConfig; | |
import fr.idfm.sb.payment.client.dto.vault.AuthDto; | |
import fr.idfm.sb.payment.client.dto.vault.VaultLoginRequestDto; | |
import fr.idfm.sb.payment.client.dto.vault.VaultLoginResponseDto; | |
import fr.idfm.sb.payment.client.dto.vault.VaultTokenLookupSelfResponseDto; | |
import fr.idfm.sb.payment.common.constant.CustomHttpHeaders; |
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.util.regex.Pattern | |
object Main { | |
val propertyPattern = Pattern.compile("<dependency>\\r\\n\\s+<groupId>.+<\\/groupId>\\r\\n\\s+<artifactId>(.+)<\\/artifactId>\\r\\n\\s+<version>([0-9].+)<\\/version>", Pattern.MULTILINE).toRegex() | |
val duplicatePattern = Regex("<([^>]+)>([0-9.A-Za-z]+)<\\/[^>]+>") | |
@JvmStatic | |
fun main(args: Array<String>) { | |
mergeDuplicates() |
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
#include <winsock2.h> | |
#include <ws2tcpip.h> | |
#include <windows.h> | |
#include <vector> | |
#include <string> | |
#include <iostream> | |
namespace AsyncSocket { | |
inline std::vector<WSAPOLLFD> watchList; |
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 fr.romain.ass3.persist; | |
import android.content.Context; | |
import java.io.ObjectInputStream; | |
import java.io.ObjectOutputStream; | |
import fr.romain.ass3.MainActivity; | |
public final class LocalStorage { |
NewerOlder