Skip to content

Instantly share code, notes, and snippets.

View samaddico's full-sized avatar
🏠
Working from home

Samuel Addico samaddico

🏠
Working from home
View GitHub Profile
@samaddico
samaddico / customBindingFile.xjb
Created November 18, 2016 19:32 — forked from pulkitsinghal/customBindingFile.xjb
How to get Java POJOs, generated from schema files, to implement custom interfaces via maven plugins
<?xml version="1.0"?>
<jxb:bindings version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
jxb:extensionBindingPrefixes="xjc">
<jxb:bindings schemaLocation="../schema/yourSchemaFile.xsd">
<jxb:bindings node="//xs:complexType[@name='SomeElementNameFromYourSchemaFile']">
@samaddico
samaddico / bitbucket-pipelines.yml
Created July 10, 2019 09:57 — forked from adilsoncarvalho/bitbucket-pipelines.yml
Bitbucket Pipelines deployment to a Google Container Engine configuration
options:
docker: true
pipelines:
branches:
master:
- step:
image: google/cloud-sdk:latest
name: Deploy to production
deployment: production
caches:
@samaddico
samaddico / OkHttpUtil.java
Created October 4, 2019 15:04 — forked from preethamhegdes/OkHttpUtil.java
OkHttp Client Ignore certificate
import okhttp3.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.net.ssl.*;
import java.net.*;
import java.security.cert.CertificateException;
/*
okhttp version used 3.8.1
@samaddico
samaddico / curl.md
Created October 4, 2019 18:26 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@samaddico
samaddico / BankReader.java
Created October 22, 2019 11:13 — forked from ah052070/BankReader.java
Java program involving transactions
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Class which reads clients transactions from internet database file and returns for its consumers
*/
@samaddico
samaddico / BankReader.java
Created October 22, 2019 11:13 — forked from ah052070/BankReader.java
Java program involving transactions
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Class which reads clients transactions from internet database file and returns for its consumers
*/
@samaddico
samaddico / BankReader.java
Created October 22, 2019 11:13 — forked from ah052070/BankReader.java
Java program involving transactions
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Class which reads clients transactions from internet database file and returns for its consumers
*/
@samaddico
samaddico / BankReader.java
Created October 22, 2019 11:13 — forked from ah052070/BankReader.java
Java program involving transactions
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Class which reads clients transactions from internet database file and returns for its consumers
*/
@samaddico
samaddico / BankReader.java
Created October 22, 2019 11:14 — forked from ah052070/BankReader.java
Java program involving transactions
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Class which reads clients transactions from internet database file and returns for its consumers
*/
@samaddico
samaddico / BankReader.java
Created October 22, 2019 11:14 — forked from ah052070/BankReader.java
Java program involving transactions
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Class which reads clients transactions from internet database file and returns for its consumers
*/