Skip to content

Instantly share code, notes, and snippets.

View LightSystem's full-sized avatar

João Alves LightSystem

View GitHub Profile
if (this == null) return null;
javax.xml.transform.TransformerFactory tf = javax.xml.transform.TransformerFactory.newInstance();
javax.xml.transform.Transformer transformer = tf.newTransformer();
transformer.setOutputProperty( javax.xml.transform.OutputKeys.METHOD, "xml");
transformer.setOutputProperty("encoding", "UTF-8");
transformer.setOutputProperty(javax.xml.transform.OutputKeys.INDENT,"yes");
transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "3" );
javax.xml.transform.dom.DOMSource source = new javax.xml.transform.dom.DOMSource(this);
/**
*
* Implements the standard calculation for the final age
*
* @param birthDate
* @param contractBeginDate
* @return the technical age
* @throws InvalidBirthDateException
*/
private int calculateFinalAge(Calendar birthDate, Calendar contractBeginDate) throws InvalidBirthDateException{
@LightSystem
LightSystem / selenium-manifest.yaml
Created May 13, 2021 14:32
selenium/standalone-chrome kubernetes deploy
apiVersion: v1
kind: Service
metadata:
name: selenium-chrome-service
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
loadBalancerIP: 180.44.235.83
selector: