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
public class CatacrokerTest { | |
public static void main(String[] args){ | |
Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { | |
public void run() { | |
System.out.println("Ohh my god, the Catacroker is alive"); | |
} | |
})); |
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.Arrays; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Random; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
/** | |
* Created by jabrena |
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 examples; | |
import cloud.robots.bridge.client.Bridge; | |
import cloud.robots.bridge.client.exceptions.BridgeException; | |
import cloud.robots.bridge.client.internal.BridgeBuilderFactory; | |
import cloud.robots.bridge.client.model.Message; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Random; |
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 examples; | |
import ev3dev.sensors.Battery; | |
import ev3dev.sensors.arduino.bn055.BNO055; | |
import ev3dev.sensors.arduino.bn055.BNO055Listener; | |
import ev3dev.sensors.arduino.bn055.model.BNO055Response; | |
import ev3dev.sensors.slamtec.RPLidarA1; | |
import ev3dev.sensors.slamtec.RPLidarA1ServiceException; | |
import ev3dev.sensors.slamtec.RPLidarProviderListener; | |
import ev3dev.sensors.slamtec.model.Scan; |
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
Java for Kids | |
Juan Antonio Breña Moral | |
Table of Contents | |
Introduction..........................................................................................................................................3 | |
Getting Started......................................................................................................................................3 | |
The language........................................................................................................................................3 | |
Introduction......................................................................................................................................3 | |
The architecture of Java...................................................................................................................3 | |
The JVM.....................................................................................................................................3 |
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 examples; | |
import edu.wpi.rail.jrosbridge.Ros; | |
import ev3dev.rosbridge.publishers.BrickBattery; | |
import ev3dev.rosbridge.publishers.Odom; | |
import ev3dev.rosbridge.publishers.Scan; | |
import ev3dev.rosbridge.subscribers.TeleOperation; | |
import ev3dev.sensors.Battery; |
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
public class HelloWorld { | |
public static void main(String[] args) { | |
// Prints "Hello, World" to the terminal window. | |
System.out.println("Hello, World"); | |
} | |
} |
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
/** | |
Program description | |
*/ | |
public class HelloWorld { | |
public static void main(String[] args) { | |
//Message | |
String message = "Hello, World"; | |
// Prints "Hello, World" to the terminal window. |
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
#1. Create folder | |
mkdir 320 | |
#2. Convert any .mp3 to 320 bit rate | |
for f in *.mp3 | |
do | |
echo "Processing $f" | |
ffmpeg -i "$f" -c:a libmp3lame -b:a 320k "./320/$f" | |
done |
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
robot@ev3dev:~$ java -jar vmbenchmarks.jar -wi 1 -i 1 -f 1 | |
WARNING: An illegal reflective access operation has occurred | |
WARNING: Illegal reflective access by org.openjdk.jmh.util.Utils (file:/home/robot/vmbenchmarks.jar) to field java.io.Console.cs | |
WARNING: Please consider reporting this to the maintainers of org.openjdk.jmh.util.Utils | |
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations | |
WARNING: All illegal access operations will be denied in a future release | |
# JMH version: 1.20 | |
# VM version: JDK 10, VM 10+46-ev3 | |
# VM invoker: /opt/jri-10-build-46-v2/bin/java | |
# VM options: <none> |