Skip to content

Instantly share code, notes, and snippets.

View warpgate3's full-sized avatar
🐤

m2sj warpgate3

🐤
View GitHub Profile
sudo docker run -it --entrypoint /bin/bash [docker_image]
mvn -N io.takari:maven:wrapper
@warpgate3
warpgate3 / rate.py
Last active November 7, 2019 07:13
rate rowbdugi
import random
from collections import Counter
def chk_made(target):
t = []
n = []
for c in target:
t.append(c[0])
n.append(c[1:])
s1 = set(t)
spring:
redis:
host: localhost
port: 6379
package info.m2sj.springfluxandredis;
import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory;
import org.springframework.data.redis.core.ReactiveRedisOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;
import java.util.ArrayList;
import java.util.List;
package info.m2sj.springfluxandredis;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.MediaType;
import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerResponse;
import static org.springframework.web.reactive.function.server.RouterFunctions.route;
package info.m2sj.springfluxandredis;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory;
import org.springframework.data.redis.core.ReactiveRedisOperations;
import org.springframework.data.redis.core.ReactiveRedisTemplate;
import org.springframework.data.redis.serializer.RedisSerializationContext;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
package info.m2sj.springfluxandredis;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import redis.embedded.RedisServer;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
@Configuration
plugins {
id 'org.springframework.boot' version '2.1.7.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
group = 'info.m2sj'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
git remote set-url origin https://warpgate3@github.com/warpgate3/spring5-webflux-simple.git