This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package customcode; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
import java.util.UUID; | |
import java.util.function.Consumer; | |
import org.apache.commons.lang3.exception.ExceptionUtils; | |
import org.joda.time.DateTime; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>net.trajano.mojo</groupId> | |
<artifactId>batik-maven-plugin</artifactId> | |
<version>1.0.1</version> | |
<executions> | |
<execution> | |
<id>ldpi</id> | |
<goals><goal>rasterizer</goal></goals> | |
<phase>initialize</phase> | |
<configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.toilelibre.libe.logs | |
import java.io.IOException; | |
import java.util.List; | |
import java.util.Map; | |
import org.apache.commons.lang3.ArrayUtils; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.http.HttpRequest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.toilelibre.libe.util; | |
public class CommonPartFinder { | |
private static final int INDEX_NOT_FOUND = -1; | |
private static final String EMPTY = ""; | |
public static class Range { | |
private final int aDiffStart; | |
private final int aDiffEnd; | |
private final int bDiffStart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.toilelibre.libe.curl; | |
import java.io.IOException; | |
import java.lang.reflect.InvocationTargetException; | |
import java.net.InetAddress; | |
import java.net.UnknownHostException; | |
import java.util.List; | |
import org.apache.commons.cli2.Argument; | |
import org.apache.commons.cli2.CommandLine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.fasterxml.jackson.databind.jsontype.ext; | |
import java.io.IOException; | |
import java.util.UUID; | |
import org.junit.Test; | |
import com.fasterxml.jackson.annotation.JsonIgnore; | |
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | |
import com.fasterxml.jackson.annotation.JsonTypeInfo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ESC=$(printf '\033'); | |
RESULT="$(curl -s https://www.free-reseau.fr/incidents-du-jour/)" | |
echo -e " \033[1;33mNRA\033[0m \033[1;36m0h 4h 8h 12h 16h 20h\033[0m"; | |
echo "$RESULT" | xmllint --html --nowarning --xpath '/html/body/table[position()>2]' - 2>/dev/null | tr '\n' ' ' | sed 's/\s\+/ /g' | sed 's/>\s\+</></g' | sed 's/\(<\/table>\)\?<table style="width:98%; padding-bottom:5px; padding-right:5px;" class="general"><colgroup style="width:22%"><\/colgroup><colgroup class="tablo_group" span="48"><\/colgroup><tr><td> <\/td><td colspan="8">2h<\/td><td colspan="8">6h<\/td><td colspan="8">10h<\/td><td colspan="8">14h<\/td><td colspan="8">18h<\/td><td colspan="8">22h<\/td><\/tr>//g' | sed 's/<tr><td colspan="49"><\/td><\/tr>//g' | sed 's/<\/table><table style="margin-left:auto; margin-right:auto;">.*//' | sed 's/<td class="etatok">1<\/td>/./g' | sed 's/<td class="etatnok">X<\/td>/X/g' | sed 's/<td class="etatnonfait"><\/td>/-/g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@JsonDeserialize (builder = A.Builder.class) | |
public class A { private final String b; private final int c; | |
@JsonPOJOBuilder (withPrefix = "") | |
public static class Builder { | |
private String b; | |
private int c; | |
@Override | |
public A build () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.toilelibre.libe.divedeepanalyzer; | |
import java.io.*; | |
import java.util.Arrays; | |
import java.util.Collections; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.toilelibre.libe.divedeepanalyzer; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Set; | |
import spoon.Launcher; |
OlderNewer