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
/** | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliancewith the License. | |
* You may obtain a copy of the License at | |
* |
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
int[] array = { 1, 2, 3}; //Java | |
int[] array = [1,2,3] //Groovy |
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 GiveItBeans { | |
private String stringBean; | |
private boolean wildValue; | |
public String getStringBean() { | |
return this.stringBean; | |
} | |
public void setStringBean(String stringBean) { | |
this.stringBean = stringBean; |
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
GiveItBeans b = new GiveItBeans() | |
b.stringBean = "hello" | |
b.wildValue = true | |
if (b.wildValue) { | |
assert b.stringBean == "hello" | |
} | |
println(b.stringBean) |
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
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() { |
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
apply plugin: 'com.android.library' | |
android { | |
compileSdkVersion 28 | |
defaultConfig { | |
minSdkVersion 16 | |
targetSdkVersion 27 | |
versionCode 1 | |
versionName "1.0" |
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
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) { |
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
trait Handle { | |
fn handle(&self) -> String; | |
} | |
struct Command<T> { | |
pub payload: T | |
} | |
struct Jump { | |
pub how_high: i32 |
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
{ | |
"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", |
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
{ | |
"exp": 1592174137, | |
"iat": 1592173837, | |
"jti": "901550d3-c449-4a7d-b67c-db4161337418", | |
"iss": "http://localhost:8083/auth/realms/trucks", | |
"aud": [ | |
"truck-rn", | |
"realm-management", | |
"account" | |
], |
OlderNewer