Skip to content

Instantly share code, notes, and snippets.

View mxgrey's full-sized avatar
🦀
Rustacean

Grey mxgrey

🦀
Rustacean
View GitHub Profile
class Joint : public virtual AddonManager
{
public:
struct Properties // First category of Properties
{
std::string mName;
Eigen::Isometry3d mTransformFromParent;
Eigen::Isometry3d mTransformFromChild;
ActuatorType mActuatorType;
class Joint : public virtual ComponentManager
{
public:
struct Properties // First category of Properties
{
std::string mName;
Eigen::Isometry3d mTransformFromParent;
Eigen::Isometry3d mTransformFromChild;
ActuatorType mActuatorType;
class CustomCollisionFilter : public dart::collision::BodyNodeCollisionFilter
{
public:
inline CustomCollisionFilter(const std::vector<std::pair<std::string, std::string>>& pairs)
{
for(const std::pair<std::string, std::string>& pair : pairs)
{
mPairs[pair.first] = pair.second;
mPairs[pair.second] = pair.first;
#include <memory>
#include <iostream>
class Object
{
public:
std::string mData;
#include <random> // Needed to create random number generation tools
#include <iostream> // Needed to print stuff out
int main()
{
// First, we create a device that will pull randomness from entropy
// in the hardware of the computer. This is a mildly expensive
// operation, so we only do it once at startup and then use it as
0 : 0 0 0 0 0 10
0.001 : 0 0 0 0 0 9.99999
0.002 : 0 0 0 0 0 9.99997
0.003 : 0 0 0 0 0 9.99994
0.004 : 0 0 0 0 0 9.9999
0.005 : 0 0 0 0 0 9.99985
0.006 : 0 0 0 0 0 9.99979
0.007 : 0 0 0 0 0 9.99973
0.008 : 0 0 0 0 0 9.99965
0.009 : 0 0 0 0 0 9.99956
@mxgrey
mxgrey / gist:0e38a0a12e430dab8d4bf8e5c803eff7
Created November 10, 2019 12:13
From runningcargo run --example pong --features "vulkan"
Finished dev [unoptimized + debuginfo] target(s) in 0.16s
Running `target/debug/examples/pong`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.12.0
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: c72063f13f90bae4ae96b6c96e04a2206493bbf3
[INFO][amethyst::app] Rustc version: 1.38.0 Stable
[INFO][amethyst::app] Rustc git commit: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
[INFO][gfx_backend_vulkan]
GENERAL | VALIDATION [ObjectTracker (0)] : OBJ[0x1] : CREATE DebugUtilsMessengerEXT object 0x55e40ebaf920
@mxgrey
mxgrey / gist:9ac28c8ad30f61de670ba45de698aacc
Created November 10, 2019 12:13
From runningcargo run --example pong --features "vulkan"
Finished dev [unoptimized + debuginfo] target(s) in 0.16s
Running `target/debug/examples/pong`
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.12.0
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: c72063f13f90bae4ae96b6c96e04a2206493bbf3
[INFO][amethyst::app] Rustc version: 1.38.0 Stable
[INFO][amethyst::app] Rustc git commit: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
[INFO][gfx_backend_vulkan]
GENERAL | VALIDATION [ObjectTracker (0)] : OBJ[0x1] : CREATE DebugUtilsMessengerEXT object 0x55e40ebaf920
@mxgrey
mxgrey / amethyst_example_pong_output.txt
Last active November 10, 2019 12:51
From running `cargo run --example pong --features "vulkan"` on Ubuntu 18.04 with a Radeon RX Vega 64 graphics card. amdgpu-pro drivers are installed.
[INFO][amethyst::app] Initializing Amethyst...
[INFO][amethyst::app] Version: 0.12.0
[INFO][amethyst::app] Platform: x86_64-unknown-linux-gnu
[INFO][amethyst::app] Amethyst git commit: c72063f13f90bae4ae96b6c96e04a2206493bbf3
[INFO][amethyst::app] Rustc version: 1.38.0 Stable
[INFO][amethyst::app] Rustc git commit: 625451e376bb2e5283fc4741caa0a3e8a2ca4d54
[WARN][rendy_factory::factory] Slow safety checks are enabled! Disable them in production by enabling the 'no-slow-safety-checks' feature!
[INFO][rendy_util::wrap] Slow safety checks are enabled! You can disable them in production by enabling the 'no-slow-safety-checks' feature!
[INFO][gfx_backend_vulkan]
GENERAL [Loader Message (0)] : Device Extension: VK_KHR_bind_memory2 (/usr/lib/x86_64-linux-gnu/libvulkan_radeon.so) version 0.0.1
@mxgrey
mxgrey / spelling_bee_output.txt
Created May 6, 2020 06:52
Expected output of the spelling bee challenge, given T (required), A, R, N, G, F, L
Basic words:
- LANTANA
- TAAR
- TRAFALGAR
- GANTANG
- TARRA
- RATAN
- TARR
- RATTAN
- ARRANT