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
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}, |
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
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) { |
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
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') |
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
{ | |
"rootNode": { | |
"type": "grid", | |
"value": [ | |
{ | |
"type": "button", | |
"value": { | |
"type": "node", | |
"text": "Games", | |
"args": { |
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
{ | |
"rootNode": { | |
"type": "grid", | |
"value": [ | |
{ | |
"type": "button", | |
"value": { | |
"type": "node", | |
"text": "Games", | |
"args": { |