Skip to content

Instantly share code, notes, and snippets.

View nanomad's full-sized avatar

Giovanni Condello nanomad

View GitHub Profile
package com.thomsonreuters.solutions.baml.support;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVPrinter;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.nio.file.Files;
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<showWarnings>true</showWarnings>
[package]
name = "tokio-help"
version = "0.1.0"
authors = ["Giovanni Condello"]
[dependencies]
bytes = "0.4"
futures = "0.1"
tokio-io = "0.1"
tokio-core = "0.1"
[package]
name = "rumqtt-demo"
version = "0.1.0"
[dependencies]
rumqtt = { git = "https://github.com/AtherEnergy/rumqtt", branch = "tokio2"}
mqtt3 = { git = "https://github.com/tekjar/mqtt3" }
class VerticalTimelineCard extends HTMLElement {
static get is() {
return 'vertical-timeline-card';
}
static get observedAttributes() {
return ['date', 'time', 'primarycolor', 'textcolor'];
}
@nanomad
nanomad / pom.xml
Last active October 31, 2017 09:19
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
<source>${java.version}</source>
<target>${java.version}</target>
<showWarnings>true</showWarnings>
<compilerArgs>
[package]
name = "testing"
version = "0.1.0"
authors = ["xx xx <xxxx@nowhere.org>"]
[dependencies]
tokio-mqtt = {git = "https://github.com/proman21/tokio-mqtt"}
package it.test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
public class FixMe {
public static void main(String[] args) {
Integer[] integers = new Integer[]{1, 2, 2, 4, 5, -1, -2, 23, 42, -1};
PS C:\WINDOWS\system32> $env:HYPERV_VIRTUAL_SWITCH="BridgeEth"
PS C:\WINDOWS\system32> minishift start --show-libmachine-logs -v 9
Starting local OpenShift cluster using 'hyperv' hypervisor...
Found binary path at C:\tools\minishift\minishift.exe
Launching plugin server for driver hyperv
Plugin server listening at address 127.0.0.1:56525
() Calling .GetVersion
Using API Version 1
() Calling .SetConfigRaw
() Calling .GetMachineName