Skip to content

Instantly share code, notes, and snippets.

View RaffaeleSgarro's full-sized avatar

Raffaele Sgarro RaffaeleSgarro

View GitHub Profile
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.*;
import static org.junit.jupiter.api.Assertions.*;
<?xml version='1.0' encoding='UTF-8'?><!-- Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.5-hudson-$BUILD_NUMBER-. --><!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.5-hudson-$BUILD_NUMBER-. -->
<definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="www.sist.puglia.it/Schemas/PDD_SIST/SCATEL/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="www.sist.puglia.it/Schemas/PDD_SIST/SCATEL/" name="AAAService">
<policy:Policy xmlns:policy="http://schemas.xmlsoap.org/ws/2004/09/policy" wsu:Id="PddaslPortBindingPolicy">
<policy:ExactlyOne>
<policy:All>
<secPolicy:AsymmetricBinding xmlns:secPolicy="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
<policy:Policy>
@RaffaeleSgarro
RaffaeleSgarro / vimarte.php
Last active December 9, 2018 14:42
Plugin that store article ID
<?php
/*
* Plugin Name: Vimarte
* Plugin URI: https://www.vimarte.it
* Description: Vimarte customization to WP
* Author: Raffaele
* Version: 0.1
* Author URI: https://www.pediatria.it
*/
create table stackoverflow_user (
user_name varchar(100) primary key
);
create table stackoverflow_language (
language_name varchar(100) primary key
);
create table stackoverflow_user_language (
user_name varchar(100) references stackoverflow_user(user_name),
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity version="8.0.144.1" processorArchitecture="X86" name="Oracle Corporation, Java(tm) 2 Standard Edition" type="win32"></assemblyIdentity>
<description>Java(TM) SE javaw process</description>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
</dependentAssembly>
</dependency>
@RaffaeleSgarro
RaffaeleSgarro / Privacy Policy.md
Created February 7, 2017 21:10
Abbecedario Privacy Policy

Privacy Policy

This application does not collect user data on its own.

Third program includes advertising software that may access and share user data with third parties.

This app

This application does not store, use or send user information on its own.

Advertising

This application includes third party software that likely uses user information like language and sex to profile advertising. You can purchase the ad-free version if you'd like to opt-out.

package com.stackoverflow;
import javassist.*;
public class JavassistVerifyError {
public interface Domain {
Integer getIdentifier();
Object getColumnByIndex(int i);
}
package stackoverflow;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.File;
public class DomParser {
@RaffaeleSgarro
RaffaeleSgarro / ProducerConsumer.java
Created January 19, 2016 09:58
Plain Java ProducerConsumer example
package stackoverflow;
import java.util.LinkedList;
import java.util.Queue;
public class ProducerConsumer {
public static void main(String... args) throws Exception {
final Object lock = new Object();
final Queue<Long> data = new LinkedList<>();