Skip to content

Instantly share code, notes, and snippets.

View petrukhnov's full-sized avatar

Konstantin Petrukhnov petrukhnov

View GitHub Profile
@petrukhnov
petrukhnov / TemplateProject.podspec
Created September 10, 2019 11:09
Multiplatform Project (MPP) Kotlin 1.3.50 K/N iOS/jvm project template (+gradle5, junit5, release)
Pod::Spec.new do |s|
s.name = 'TemplateProject'
s.version = 'VERSION'
s.authors = {
'name1' => 'email1',
'name2' => 'email2'
}
s.license = 'Proprietary'
s.homepage = 'https://github.com/Ekahau/TemplateProject'
s.summary = 'Project description may appear here'
@petrukhnov
petrukhnov / Main.java
Last active September 26, 2021 01:04
jMonkeyengine gradle setup example
package petrukhnov.konstantin.games.snake;
import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.renderer.RenderManager;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.scene.shape.Cylinder;
@Override
public void simpleInitApp() {
Box b = new Box(1, 1, 1);
Geometry geom = new Geometry("Box", b);
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
mat.setColor("Color", ColorRGBA.Blue);
geom.setMaterial(mat);
rootNode.attachChild(geom);
@Configuration
public class MongoConfig extends AbstractMongoConfiguration {
@Value("${datasource.uri}")
private String uri;
private MongoClientURI mongoClientURI;
private Mongo mongo;