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>
import javax.xml.bind.JAXB; | |
import javax.xml.bind.JAXBException; | |
public class Person { | |
private String name; | |
private int age; | |
public String getName() { | |
return name; |
# ARGS | |
url = "TODO" | |
username = "TODO" | |
password = "TODO" | |
folder = "TARGET_FOLDER" | |
# LOGIC | |
require "fileutils" | |
FileUtils.rm_rf folder | |
FileUtils.mkdir folder |
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" |
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| |
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>
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 { |
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; |
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"); |