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
version: '3' | |
services: | |
database: | |
image: mysql | |
container_name: database.dev | |
command: mysqld --user=root --verbose | |
ports: | |
- "3306:3306" | |
environment: | |
MYSQL_DATABASE: "test" |
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 javax.sound.sampled.AudioFormat; | |
import javax.sound.sampled.AudioSystem; | |
import javax.sound.sampled.DataLine; | |
import javax.sound.sampled.SourceDataLine; | |
import javax.sound.sampled.TargetDataLine; | |
public class TestMic { | |
public static void main(String[] args) { | |
AudioFormat format = new AudioFormat(44100, 16, 2, true, true); |
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 static String path(Class clazz) { | |
try { | |
File tmp = new File(clazz.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()); | |
String ext = tmp.getName(); | |
if (ext.contains(".jar")) { | |
String p = tmp.toString(); | |
p = p.substring(0, p.lastIndexOf(File.separator)); | |
return p + File.separator; |
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
float dis = rack2.getLocalTranslation().distance(socket.getLocalTranslation()); | |
System.out.println("distance is => " + dis); |
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
try { | |
URLClassLoader loader = (URLClassLoader) ClassLoader.getSystemClassLoader(); | |
MyClassLoader l = new MyClassLoader(loader.getURLs()); | |
l.addURL(new URL("file:C:\\Users\\yn\\Documents\\NetBeansProjects\\app\\dist\\app.jar")); | |
Class c = l.loadClass("app.App"); | |
Object c1 = c.newInstance(); | |
Method print = c.getMethod("print", null); | |
print.invoke(c1); |
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
<useStyles filename="nifty-default-styles.xml" /> | |
<useControls filename="nifty-default-controls.xml" /> | |
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 com.jme3.texture.Image; | |
import com.jme3.texture.Texture2D; | |
import com.jme3.texture.plugins.AWTLoader; | |
import java.awt.GraphicsEnvironment; | |
import java.awt.image.BufferedImage; | |
import uk.co.caprica.vlcj.component.DirectMediaPlayerComponent; | |
import uk.co.caprica.vlcj.discovery.NativeDiscovery; | |
import uk.co.caprica.vlcj.player.direct.BufferFormat; | |
import uk.co.caprica.vlcj.player.direct.BufferFormatCallback; | |
import uk.co.caprica.vlcj.player.direct.DirectMediaPlayer; |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package tools.camera; | |
import com.jme3.asset.AssetManager; | |
import com.jme3.export.JmeExporter; | |
import com.jme3.export.JmeImporter; | |
import com.jme3.input.ChaseCamera; |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package tools; | |
import com.jme3.bullet.control.CharacterControl; | |
import com.jme3.math.Vector3f; | |
import com.jme3.scene.Spatial; |
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
/* | |
* To change this license header, choose License Headers in Project Properties. | |
* To change this template file, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package tools; | |
import com.jme3.scene.Spatial; | |
/** |