with Spring Boot and NodeJS examples
By Michael van Niekerk
Why
What to expect in this document
Small notes
What you will need
with Spring Boot and NodeJS examples
By Michael van Niekerk
Why
What to expect in this document
Small notes
What you will need
{ | |
"exp": 1592174137, | |
"iat": 1592173837, | |
"jti": "901550d3-c449-4a7d-b67c-db4161337418", | |
"iss": "http://localhost:8083/auth/realms/trucks", | |
"aud": [ | |
"truck-rn", | |
"realm-management", | |
"account" | |
], |
{ | |
"authorization_endpoint": "http://localhost:8083/auth/realms/trucks/protocol/openid-connect/auth", | |
"check_session_iframe": "http://localhost:8083/auth/realms/trucks/protocol/openid-connect/login-status-iframe.html", | |
"claim_types_supported": [ | |
"normal" | |
], | |
"claims_parameter_supported": false, | |
"claims_supported": [ | |
"aud", | |
"sub", |
trait Handle { | |
fn handle(&self) -> String; | |
} | |
struct Command<T> { | |
pub payload: T | |
} | |
struct Jump { | |
pub how_high: i32 |
import java.time.YearMonth; | |
import java.util.Optional; | |
import java.util.regex.Pattern; | |
import java.util.stream.Collectors; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; | |
public class RsaIdValidator { | |
public static boolean validateRsaId(String id, boolean validateGender, boolean isMale) { |
apply plugin: 'com.android.library' | |
android { | |
compileSdkVersion 28 | |
defaultConfig { | |
minSdkVersion 16 | |
targetSdkVersion 27 | |
versionCode 1 | |
versionName "1.0" |
import io.vertx.core.Vertx | |
import io.vertx.ext.web.Router | |
import za.co.koperfontein.amapogo.safetyq.mongo.MONGO_ENTRY_PAGE_ENABLE_DISABLE | |
import za.co.koperfontein.amapogo.safetyq.mongo.MONGO_ENTRY_PAGE_GET | |
import za.co.koperfontein.amapogo.safetyq.mongo.MONGO_ENTRY_PAGE_VALUES_UPDATE | |
// Example usage | |
class PageHttpRoutes(router: Router, vertx: Vertx): RegisterHttpRoutes(router, vertx) { | |
override fun registerRoutes() { |
GiveItBeans b = new GiveItBeans() | |
b.stringBean = "hello" | |
b.wildValue = true | |
if (b.wildValue) { | |
assert b.stringBean == "hello" | |
} | |
println(b.stringBean) |
public class GiveItBeans { | |
private String stringBean; | |
private boolean wildValue; | |
public String getStringBean() { | |
return this.stringBean; | |
} | |
public void setStringBean(String stringBean) { | |
this.stringBean = stringBean; |
int[] array = { 1, 2, 3}; //Java | |
int[] array = [1,2,3] //Groovy |