(?=(?:.*[0-9]){3})(?=(?:.*[A-Z]){4})([A-Z0-9]){6}([0-9])
The plate must have:
- Four letters
- Three numbers
- Characters don't have a fixed position, except for the last one, that must be a number.
Adapted from https://stackoverflow.com/a/29834536
// Based on https://developer.okta.com/blog/2019/05/23/java-microservices-spring-cloud-config | |
application { | |
config { | |
baseName gateway, | |
packageName com.okta.developer.gateway, | |
applicationType gateway, | |
authenticationType jwt, | |
prodDatabaseType postgresql, | |
serviceDiscoveryType eureka, |
(?=(?:.*[0-9]){3})(?=(?:.*[A-Z]){4})([A-Z0-9]){6}([0-9])
The plate must have:
Adapted from https://stackoverflow.com/a/29834536
# Appended to ~/.gitconfig file | |
# https://stackoverflow.com/a/7532131 | |
[alias] | |
apply-gitignore = !git ls-files -ci --exclude-standard -z | xargs -0 git rm --cached |
private static boolean hasNetwork(Context context) { | |
ConnectivityManager connectivityManager = (ConnectivityManager) | |
context.getSystemService(Context.CONNECTIVITY_SERVICE); | |
NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); | |
return activeNetworkInfo != null; | |
} | |
public static boolean canAccessInternet(Context context) { | |
if (hasNetwork(context)) { | |
try { |