When you have a html site with turbolinks loaded and the following in the element of each and every page...
<html>
<head>
<!-- load jQuery -->
<script type="text/javascript">
console.log("script in html > head")
</script>
FROM openjdk:8-jdk-alpine | |
ENV EMAIL_HOSTNAME="smtp.gmail.com" | |
ENV EMAIL_PORT="587" | |
RUN apk add --no-cache openssl | |
RUN openssl s_client -showcerts -connect $EMAIL_HOSTNAME:$EMAIL_PORT -starttls smtp </dev/null 2>/dev/null | openssl x509 -outform DER > my-certificate.der | |
RUN echo yes | $JAVA_HOME/bin/keytool -import -trustcacerts -file my-certificate.der -alias my-certificate -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit |
class FizzBuzz { | |
public static void main(String[] args) { | |
if (args != null && args.length == 1) { | |
try { | |
int number = Integer.parseInt(args[0]); | |
for (int i = 1; i < number; i++) { | |
if (i % 3 == 0 && i % 5 == 0) { | |
System.out.println("FizzBuzz"); | |
} else if (i % 3 == 0) { | |
System.out.println("Fizz"); |
class FizzBuzz { | |
public static void main(String[] args) { | |
if (args != null && args.length == 1) { | |
try { | |
int number = Integer.parseInt(args[0]); | |
for (int i = 1; i < number; i++) { | |
if (i % 3 == 0 && i % 5 == 0) { | |
System.out.println("FizzBuzz"); | |
} else if (i % 3 == 0) { | |
System.out.println("Fizz"); |
class FizzBuzz { | |
public static void main(String[] args) { | |
if (args != null && args.length == 1) { | |
try { | |
int number = Integer.parseInt(args[0]); | |
for (int i = 1; i < number; i++) { | |
if (i % 3 == 0 && i % 5 == 0) { | |
System.out.println("FizzBuzz"); | |
} else if (i % 3 == 0) { | |
System.out.println("Fizz"); |
package de.uniba.wiai.dsg.pks.assignment1.histogram.threaded.forkjoin; | |
import java.io.IOException; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.DirectoryStream; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.ArrayList; | |
import java.util.List; |
import java.util.Objects; | |
import java.util.Random; | |
import java.util.concurrent.BlockingQueue; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Future; | |
import java.util.concurrent.Semaphore; | |
import java.util.concurrent.TimeUnit; | |
import java.util.function.Supplier; | |
class ConcurrencyHelper { |
When you have a html site with turbolinks loaded and the following in the element of each and every page...
<html>
<head>
<!-- load jQuery -->
<script type="text/javascript">
console.log("script in html > head")
</script>
result = {} | |
Dir.glob("*").each do |dir| | |
result[dir] = Dir.glob("#{dir}/**/*").to_a.select {|p| File.file?(p)}.map {|p| p[dir.length..-1]} | |
end | |
puts "#{result.count} dirs found" | |
result.each do |key, value| | |
result.each do |key2, value2| |
configurations { | |
rasterizer | |
} | |
dependencies { | |
rasterizer 'org.apache.xmlgraphics:batik-rasterizer:1.7' | |
rasterizer 'org.apache.xmlgraphics:batik-codec:1.7' | |
} | |
task svg2png(type: org.gradle.api.tasks.JavaExec) { | |
classpath configurations.rasterizer | |
main "org.apache.batik.apps.rasterizer.Main" |
# ARGS | |
url = "TODO" | |
username = "TODO" | |
password = "TODO" | |
folder = "TARGET_FOLDER" | |
# LOGIC | |
require "fileutils" | |
FileUtils.rm_rf folder | |
FileUtils.mkdir folder |