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
int main(int argc, char* argv[]) | |
{ | |
if (!init()) return 1; | |
world.load(); | |
player.load(); | |
// launch game logic loop on a seperate thread | |
// this will handle update logic, animations, collision detection, etc | |
// and will run on a seperate CPU core than the main UI thread |
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
async function train(trainingPath) | |
{ | |
const training = await getTrainingDataInBatches(trainingPath); | |
let model; | |
if (training[0].index > 0){ | |
model = await tf.loadLayersModel(`file://./training/${training[0].index-1}/model.json`); | |
} | |
else { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using UnityEngine; | |
/// <summary> | |
/// Base Component Class - Allows declaration of any component with a listener interface | |
/// </summary> | |
/// <typeparam name="TListenerInterface"></typeparam> |
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
/* | |
Name: espresso_test.ino | |
Created: 3/15/2019 8:21:00 PM | |
Author: dss | |
*/ | |
#include <espresso.h> | |
void setup() { | |
espresso_setup(); |
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
@import 'https://fonts.googleapis.com/css?family=Open+Sans'; | |
body { | |
font-family: 'Open Sans', sans-serif; | |
line-height: 1.75em; | |
font-size: 16px; | |
background-color: #222; | |
color: #aaa; | |
padding: 15px; | |
} |
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
public class DataCube<T> { | |
public DataCube(int width, int height, int depth){ | |
this.width = width; | |
this.height = height; | |
this.depth = depth; | |
size3d = width*height*depth; | |
size2d = width*height; | |
data = new T[size3d]; | |
} |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
public class Allocate | |
{ | |
public static T[][][] Array3D<T>(int width, int height, int depth) | |
{ |
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
/// <summary> | |
/// Implement when you are not sure which interface to use | |
/// </summary> | |
public interface IDontKnow | |
{ | |
} |