title: gRPC on the client side tags: [gRPC, Spring Boot, Apache APISIX] categories: Technical sourcecode: github: ajavageek/grpc-apisix gofurther: - text: gRPC url: https://grpc.io/ - text: Protocol Buffers
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.*; | |
public class Main { | |
public static class Foo implements Comparable<Foo> { | |
private final int value; | |
public Foo(int value) { | |
this.value = value; |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: config-mgmt-deploy | |
labels: | |
app: config-mgmt | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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 alpine:3.8 | |
ARG GRAAL_VERSION=1.0.0-rc8 | |
ENV LANG=en_US.UTF-8 \ | |
GRAALVM_PKG=https://github.com/oracle/graal/releases/download/vm-$GRAAL_VERSION/graalvm-ce-$GRAAL_VERSION-linux-amd64.tar.gz \ | |
LD_LIBRARY_PATH=/lib \ | |
JAVA_HOME=/opt/graalvm-ce-$GRAAL_VERSION \ | |
BASH_SOURCE=/opt/graalvm-ce-$GRAAL_VERSION/bin/gu \ | |
EMSDK=/emsdk \ | |
EM_CONFIG=/root/.emscripten \ |
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
public class EmailField extends TextField implements HasValidator<String> { | |
public EmailField() { | |
super("Email"); | |
addValueChangeListener(event -> { | |
String value = getValue(); | |
if (value == null || value.trim().isEmpty()) { | |
resetToValid(); | |
} else { | |
ValidationResult result = getDefaultValidator().apply(value, null); |
I hereby claim:
- I am nfrankel on github.
- I am frankel (https://keybase.io/frankel) on keybase.
- I have a public key ASA2KsA25Ko0PC75_X0sQfMOrwwzGLVev4nSTN5L5tJ0owo
To claim this, I am signing this object:
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
grant codeBase "file:target/spring-petclinic-1.4.2.jar" { | |
permission java.lang.RuntimePermission "getProtectionDomain"; | |
permission java.lang.RuntimePermission "setFactory"; | |
permission java.net.NetPermission "specifyStreamHandler"; | |
permission java.lang.RuntimePermission "createClassLoader"; | |
permission java.lang.RuntimePermission "setContextClassLoader"; | |
permission java.lang.RuntimePermission "accessDeclaredMembers"; | |
permission java.lang.reflect.ReflectPermission "suppressAccessChecks"; | |
permission java.lang.RuntimePermission "accessClassInPackage.sun.reflect"; | |
permission java.lang.RuntimePermission "getClassLoader"; |
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
#/bin/sh | |
git checkout gh-pages | |
git checkout master -- README.adoc | |
asciidoctor README.adoc | |
mv README.html index.html | |
git add index.html | |
git commit -m "Update site with documentation" | |
git push origin HEAD --force | |
git checkout master |
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 org.springframework.boot.json.BasicJsonParser; | |
import org.springframework.http.HttpEntity; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.http.HttpMethod; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.util.LinkedMultiValueMap; | |
import org.springframework.util.MultiValueMap; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestParam; | |
import org.springframework.web.bind.annotation.RestController; |
layout: post type: posts title: "Encapsulation: I don't think it means what you think it means" tags: [design, object-oriented-programming] categories: Development picture: src: /assets/resources/encapsulation-dont-think-means-think-means/inigomontoya.jpg height: 453 width: 525
NewerOlder