Skip to content

Instantly share code, notes, and snippets.

@davidB
davidB / .editorconfig
Last active September 1, 2021 14:20
.editorconfig
# https://editorconfig.org/
root = true
[*]
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
@davidB
davidB / bintray-sync.bash
Last active February 10, 2021 14:21
a script to batch request sync from bintray/JCenter into maven central
#! /bin/bash
#
# for manual or api sync prerequirements are the same:
# - on oss sonatype:
# - having an account on https://issues.sonatype.org/
# - being allowed to publish to the target groupId
# - check on that stagingProfiles includes the target groupId on https://oss.sonatype.org/#stagingProfiles (same user/password as on https://issues.sonatype.org/) that
# - on bintray
# - artifacts available on JCenter (request require manual approbation from bintray)
# - artifacts follow [requirements](http://central.sonatype.org/pages/requirements.html)
@davidB
davidB / Cargo.toml
Last active December 25, 2019 08:49
GKE access failed via reqwest
[package]
name = "test_gke_cert"
version = "0.1.0"
authors = ["David Bernard"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
openssl = { version = "^0.10", features = ["vendored"] }
0
@davidB
davidB / keybase.md
Created February 13, 2018 11:22
keybase.md

Keybase proof

I hereby claim:

  • I am davidb on github.
  • I am davidb31 (https://keybase.io/davidb31) on keybase.
  • I have a public key ASB5uSzY-x3rC_KOnyXDW4EkA6xVeqsD3ZV0d26k-jBkMAo

To claim this, I am signing this object:

:jme3-examples:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:58: error: package net.java.games.input does not exist
net.java.games.input.ControllerEnvironment ce =
^
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:59: error: package net.java.games.input does not exist
net.java.games.input.ControllerEnvironment.getDefaultEnvironment();
^
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/TestNativeLoader.java:61: error: package net.java.games.input does not exist
net.java.games.input.Controller[] c =
@davidB
davidB / copyDeps.gradle
Last active March 19, 2018 09:08
a set of gradle snippet that are used via "apply from: 'http://....' "
task copyDeps {
description 'copy runtime + testRuntime dependencies into lib/ dir to allow other tools (jme3-SDK, eclipse apt-processor) to use libs'
copy {
from configurations.runtime
into 'lib/main'
}
copy {
from (configurations.testRuntime - configurations.runtime)
into 'lib/test'
}
@davidB
davidB / TestRenderToTexture.java
Created November 1, 2014 22:24
stencil and jme test
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
/// License [CC0](http://creativecommons.org/publicdomain/zero/1.0/)
package tonegod.ext;
import com.jme3.export.JmeExporter;
import com.jme3.export.JmeImporter;
import com.jme3.export.Savable;
import com.jme3.math.Vector2f;
import com.jme3.math.Vector4f;
import com.jme3.scene.Node;
import java.io.IOException;
/// License [CC0](http://creativecommons.org/publicdomain/zero/1.0/)
package tonegod.ext;
import com.jme3.math.Vector2f;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;
import com.jme3.scene.control.AbstractControl;
import java.util.Collection;