I hereby claim:
- I am bijukunjummen on github.
- I am biju (https://keybase.io/biju) on keybase.
- I have a public key whose fingerprint is B421 3F7A 7420 4272 466F A297 76CC 4693 D0E9 C8A4
To claim this, I am signing this object:
| package bucket | |
| case class Pouring(capacity: Vector[Int], initialState: Vector[Int]){ | |
| type State = Vector[Int] | |
| trait Move { | |
| def change(state: State): State | |
| } | |
| case class Pour(from: Int, to: Int) extends Move { |
| package enableannot.simple; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.context.annotation.Import; | |
| import org.springframework.test.context.ContextConfiguration; | |
| import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
| package enableannot.selector; | |
| import org.springframework.context.annotation.Import; | |
| import java.lang.annotation.ElementType; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.RetentionPolicy; | |
| import java.lang.annotation.Target; | |
| @Retention(RetentionPolicy.RUNTIME) |
| Fri May 27 21:50:07 UTC 2016 |
I hereby claim:
To claim this, I am signing this object:
| package sample | |
| import org.assertj.core.api.Assertions.assertThat | |
| import org.junit.Test | |
| import reactor.core.publisher.Flux | |
| import reactor.test.scheduler.VirtualTimeScheduler | |
| import java.time.Duration | |
| import java.util.concurrent.CountDownLatch | |
| #!/bin/bash | |
| openssl genrsa -out privkey.pem 2048 | |
| openssl rsa -pubout -in privkey.pem -out pubkey.pem | |
| SIGNING_KEY=$(cat privkey.pem) | |
| VERIFICATION_KEY=$(cat pubkey.pem) | |
| JWT_SIGNING_KEYS=$(cat <<EOF | |
| jwt: | |
| token: |
| package gateway.sample; | |
| import org.springframework.cloud.gateway.route.RouteLocator; | |
| import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.Configuration; | |
| import java.util.concurrent.TimeUnit; | |
| @Configuration |
| # Create a queue | |
| aws --endpoint http://localhost:4576 sqs create-queue --queue-name test-queue | |
| # Send a sample message | |
| aws --endpoint http://localhost:4576 sqs send-message --queue-url http://localhost:4576/queue/test-queue --message-body "Hello world" | |
| # Receive the message | |
| aws --endpoint http://localhost:4576 sqs receive-message --queue-url http://localhost:4576/queue/test-queue |
| val receiveMessageRequest: ReceiveMessageRequest = ReceiveMessageRequest.builder() | |
| .queueUrl(queueUrl) | |
| .maxNumberOfMessages(5) | |
| .waitTimeSeconds(10) | |
| .build() | |
| val messages: CompletableFuture<List<Message>> = sqsAsyncClient | |
| .receiveMessage(receiveMessageRequest) | |
| .thenApply { result -> result.messages() } |