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
ffmpeg -i input.webm -ss 00:02:11 -t 00:01:40 -c:v libx264 -c:a aac output.mp4 | |
# PowerPoint supports .mp4 files encoded with H.264 video and AAC audio | |
# -ss = start time | |
# -t = duration (after start time) | |
# -c:v = video codec for output | |
# -c:a = audio codec for output |
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
import java.io.BufferedOutputStream; | |
import java.io.FileOutputStream; | |
import java.io.InputStream; | |
import java.io.StringWriter; | |
import javax.xml.parsers.DocumentBuilderFactory; | |
import javax.xml.transform.OutputKeys; | |
import javax.xml.transform.Transformer; | |
import javax.xml.transform.TransformerFactory; | |
import javax.xml.transform.dom.DOMSource; |
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
<script src="~/lib/jquery-validate/jquery.validate.min.js"></script> | |
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script> | |
@if (",".Equals(Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator)) | |
{ | |
<script> | |
// decimal separator comma instead of point | |
jQuery.extend(jQuery.validator.methods, { | |
number: function(value, element) { | |
return this.optional(element) || /^-?\d+(?:,\d+)?$/.test(value); |
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 spike; | |
import com.sun.net.httpserver.Filter; | |
import com.sun.net.httpserver.HttpHandler; | |
import com.sun.net.httpserver.HttpServer; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.net.InetSocketAddress; | |
import java.nio.charset.StandardCharsets; |
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
import static java.util.stream.Collectors.toUnmodifiableSet; | |
import java.io.Serializable; | |
import java.util.AbstractMap; | |
import java.util.LinkedHashMap; | |
import java.util.Map; | |
import java.util.Set; | |
import javax.annotation.Nonnull; |
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 spike; | |
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import java.net.Socket; | |
import java.util.Timer; | |
import static java.nio.charset.StandardCharsets.UTF_8; |
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
Departement INSEE | Region INSEE | Departement ISO | Region ISO | Departement | Region | |
---|---|---|---|---|---|---|
01 | 84 | FR-01 | FR-ARA | Ain | Auvergne-Rhône-Alpes | |
02 | 32 | FR-02 | FR-HDF | Aisne | Hauts-de-France | |
03 | 84 | FR-03 | FR-ARA | Allier | Auvergne-Rhône-Alpes | |
04 | 93 | FR-04 | FR-PAC | Alpes-de-Haute-Provence | Provence-Alpes-Côte d'Azur | |
05 | 93 | FR-05 | FR-PAC | Hautes-Alpes | Provence-Alpes-Côte d'Azur | |
06 | 93 | FR-06 | FR-PAC | Alpes-Maritimes | Provence-Alpes-Côte d'Azur | |
07 | 84 | FR-07 | FR-ARA | Ardèche | Auvergne-Rhône-Alpes | |
08 | 44 | FR-08 | FR-GES | Ardennes | Grand Est | |
09 | 76 | FR-09 | FR-OCC | Ariège | Occitanie |
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
import java.util.Objects; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* Only these three version shemes are supported: | |
* <ul> | |
* <li>major[.minor[.incremental]][-buildnumber]</li> | |
* <li>major[.minor[.incremental]][-qualifier]</li> | |
* <li>qualifier</li> |
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
REM install a certificate | |
REM ======================= | |
set KEYTOOL=C:\Workspace\opt\Java\jdk1.8.0_162\bin\keytool | |
set FILE=D:\home\kristof\Downloads\wildca.cer | |
set KEYSTORE=C:\Workspace\opt\Java\jdk1.8.0_162\jre\lib\security\cacerts | |
set ALIAS=certinga.wildca.intermediate | |
%KEYTOOL% -import -trustcacerts ^ | |
-alias %ALIAS% ^ |
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
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.time.Duration; | |
import java.time.Instant; | |
import java.time.ZonedDateTime; |