This file contains hidden or 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 | |
new_branch() { | |
ID=$(cat /proc/sys/kernel/random/uuid) | |
git checkout dev | |
git branch ${ID} | |
git checkout ${ID} | |
} | |
try_build() { | |
mvn -q -DskipTests clean test-compile |
This file contains hidden or 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
Files.walkFileTree(srcPath, new FileVisitor<Path>() { | |
@Override | |
public FileVisitResult preVisitDirectory(Path dir, | |
BasicFileAttributes attrs) throws IOException { | |
Path target = destPath.resolve(srcPath.relativize(dir)); | |
if (!Files.exists(target)) { | |
Files.createDirectory(target); | |
} | |
return FileVisitResult.CONTINUE; | |
} |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="masterDetails"> | |
<states> | |
<state key="ProjectJDKs.UI"> | |
<settings> | |
<last-edited>12</last-edited> | |
<splitter-proportions> | |
<option name="proportions"> | |
<list> |
This file contains hidden or 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 io.github.pr0methean.medium; | |
import java.awt.image.BufferedImage; | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.Random; | |
import java.util.concurrent.ThreadLocalRandom; | |
import javax.imageio.ImageIO; | |
public class RandomDemo { |
This file contains hidden or 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.lang.reflect.AccessibleObject; | |
import java.lang.reflect.Method; | |
import org.objenesis.Objenesis; | |
import org.objenesis.ObjenesisStd; | |
import sun.misc.Unsafe; | |
public class Main { | |
private static final Objenesis OBJENESIS = new ObjenesisStd(); | |
public static void main(String[] args) throws ReflectiveOperationException { |