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 | |
echo "Creating platform independent directories...." | |
mkdir -p src/main/java | |
mkdir -p src/main/resources | |
echo "Creating directories for Android...." | |
mkdir -p src/android/java | |
mkdir -p src/android/resources | |
mkdir -p src/android/assets |
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
/* | |
OnyxFxMobile: A simple, cross-platform NBA stat app for Andriod, iOS written in Java/JavaFX. | |
Author: Adrian D. Finlay | |
License: GPLv2 | |
*/ | |
buildscript { | |
repositories { | |
jcenter() | |
} |
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.File; | |
import java.nio.file.Path; | |
import java.nio.file.Files; | |
import java.io.IOException; | |
public class RenamePhotos { | |
public static void main (String[] args) throws IOException { | |
try { | |
var dest = new java.io.File("/run/secret/").toPath(); | |
var photos = new java.io.File("/run/secret/blah").listFiles(); |
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
#!/home/adrian/java/openjdk-11/bin/java --source 11 | |
//Simple CRON Job reimplemented using Java APIs! | |
import java.io.File; | |
import java.util.Date; | |
import java.util.Timer; | |
import java.util.Calendar; | |
import java.util.TimerTask; | |
import java.time.LocalDateTime; |
NewerOlder