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
services: | |
metad0: | |
image: vesoft/nebula-metad:v3.8.0 | |
environment: | |
USER: root | |
command: | |
- --meta_server_addrs=metad0:9559 | |
- --local_ip=metad0 | |
- --ws_ip=metad0 | |
- --port=9559 |
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
package com.polixis.tracker.util; | |
import java.security.SecureRandom; | |
import java.util.List; | |
public final class CountingBloomRanked { | |
private final int buckets; | |
private final long seed; | |
private final long[] data; | |
private final long[] counts; |
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
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" | |
"https://checkstyle.org/dtds/configuration_1_3.dtd"> | |
<module name="Checker"> | |
<property name="charset" value="UTF-8"/> | |
<property name="fileExtensions" value="java, properties, xml"/> | |
<module name="BeforeExecutionExclusionFileFilter"> | |
<property name="fileNamePattern" value="module\-info\.java$"/> | |
</module> |
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
FROM quay.io/keycloak/keycloak:legacy | |
ENV KEYCLOAK_HOME=opt/jboss/keycloak | |
RUN chmod +x $KEYCLOAK_HOME | |
COPY keycloak-bcrypt-1.5.0.jar $KEYCLOAK_HOME/standalone/deployments/ | |
ENV KEYCLOAK_USER=admin | |
ENV KEYCLOAK_PASSWORD=admin | |
EXPOSE 8080 |
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
package com.plx.apipressa.configuration; | |
import java.util.concurrent.TimeUnit; | |
import io.netty.channel.ChannelOption; | |
import io.netty.handler.timeout.ReadTimeoutHandler; | |
import io.netty.handler.timeout.WriteTimeoutHandler; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.http.client.reactive.ReactorClientHttpConnector; |
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
public class LevenshteinDistance { | |
public double getDistance(String target, String other) { | |
if (target.length() == 0 || other.length() == 0){ | |
return target.length() == other.length() ? 1.0 : 0.0; | |
} | |
int[] p = new int[target.length() + 1]; | |
int[] d = new int[target.length() + 1]; | |
int i; | |
for (int j = 1; j <= other.length(); ++j) { | |
char currentSymbol = other.charAt(j - 1); |
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
volumes: | |
keycloak-postgres: | |
services: | |
postgres: | |
# Image tag (replace with yours) | |
image: postgres | |
volumes: | |
- keycloak-postgres:/var/lib/postgresql/data | |
environment: |
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
version: '3' | |
networks: | |
kafka-net: | |
driver: bridge | |
services: | |
zookeeper-server: | |
image: 'bitnami/zookeeper:latest' | |
networks: |
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
eureka: | |
client: | |
register-with-eureka: true | |
fetch-registry: true | |
service-url: | |
defaultZone: http://localhost:8761/eureka/ | |
instance: | |
hostname: localhost |
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
package com.example.nazeni.myproject; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import java.util.ArrayList; | |
import java.util.List; |
NewerOlder