Skip to content

Instantly share code, notes, and snippets.

mod particle;
mod universe;
use crate::universe::Universe;
use amethyst::{
assets::{PrefabLoader, PrefabLoaderSystem, RonFormat},
core::transform::TransformBundle,
prelude::*,
renderer::{DisplayConfig, DrawFlat, Pipeline, PosNormTex, RenderBundle, Stage},
utils::{application_root_dir, scene::BasicScenePrefab},
@ocboogie
ocboogie / reactions_slow.rs
Created June 7, 2018 07:18
Reactions applying really slow with serenity
extern crate serenity;
use serenity::model::channel::Message;
use serenity::prelude::*;
use std::env;
struct Handler;
impl EventHandler for Handler {
fn message(&self, _: Context, msg: Message) {
@ocboogie
ocboogie / benchmark.js
Created September 26, 2017 00:40
path.join benchmark
const path = require('path');
const Benchmark = require('benchmark');
const suite = new Benchmark.Suite;
suite.add('foo/bar', function() {
path.join(__dirname, 'foo/bar')
})
.add('foo, bar', function() {
path.join(__dirname, 'foo', 'bar')
{
"rootNode": {
"type": "grid",
"value": [
{
"type": "button",
"value": {
"type": "node",
"text": "Games",
"args": {
{
"rootNode": {
"type": "grid",
"value": [
{
"type": "button",
"value": {
"type": "node",
"text": "Games",
"args": {