Skip to content

Instantly share code, notes, and snippets.

@tylerlindell
tylerlindell / reduce_faces.py
Last active October 24, 2022 16:52
script for reducing faces programmatically with Meshlab's api
#!/usr/bin/env python
import sys
import os
import subprocess
# Script taken from doing the needed operation
# (Filters > Remeshing, Simplification and Reconstruction >
# Quadric Edge Collapse Decimation, with parameters:
# 0.9 percentage reduction (10%), 0.3 Quality threshold (70%)
echo off
title Install Development Environment Applications
echo installing chocolatey
:: chocolatey
Set-ExecutionPolicy Bypass; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
:: Node.js
echo installing Node.js
choco install nodejs.install
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TargetFrameRate : MonoBehaviour{
void Awake()
{
//frame jacking so we can traing through as many generations as possible very fast
Application.targetFrameRate = 300;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TargetController : MonoBehaviour
{
public bool isTracked = true;
}
/*
* Optimizer is responsible the training sessions (starting, stopping, and evaluating)
*/
using UnityEngine;
using System.Collections;
using SharpNeat.Phenomes;
using System.Collections.Generic;
using SharpNeat.EvolutionAlgorithms;
using SharpNeat.Genomes.Neat;
/*
* LocomotionController is responsible for each individual Smart Unit
*/
using System.Collections;
using System.Collections.Generic;
using SharpNeat.Phenomes;
using UnityEngine;
public class LocomotionController : UnitController
@tylerlindell
tylerlindell / LocomotionController.cs
Last active September 26, 2017 18:49
updated files from Unity NEAT for getting the bouncing cubes
/*
* LocomotionController is responsible for each individual Smart Unit
*/
using System.Collections;
using System.Collections.Generic;
using SharpNeat.Phenomes;
using UnityEngine;
public class LocomotionController : UnitController
using System.Collections;
using System.Collections.Generic;
using SharpNeat.Phenomes;
using UnityEngine;
public class LocomotionController : UnitController
{
private Rigidbody rBody;
private bool IsRunning;
private IBlackBox box;
@tylerlindell
tylerlindell / random-color.service.ts
Last active December 31, 2018 04:40
generate random colors
import { Injectable } from '@angular/core';
@Injectable()
export class RandomColorService {
public colorDictionary: any = {};
constructor() {
}
private defineColor (name: any, hueRange: any, lowerBounds: any) {
@tylerlindell
tylerlindell / torch-distro_install_build errors
Last active April 12, 2017 13:56
errors when installing torch-distro
$ ./install.sh
Prefix set to /Users/tylerlindell/torch-distro/install
Submodule 'exe/env' (https://github.com/torch/env.git) registered for path 'exe/env'
Submodule 'exe/luajit-rocks' (https://github.com/torch/luajit-rocks.git) registered for path 'exe/luajit-rocks'
Submodule 'exe/qtlua' (https://github.com/torch/qtlua.git) registered for path 'exe/qtlua'
Submodule 'exe/trepl' (https://github.com/torch/trepl.git) registered for path 'exe/trepl'
Submodule 'extra/argcheck' (https://github.com/torch/argcheck.git) registered for path 'extra/argcheck'
Submodule 'extra/cudnn' (https://github.com/soumith/cudnn.torch.git) registered for path 'extra/cudnn'
Submodule 'extra/cunn' (https://github.com/torch/cunn.git) registered for path 'extra/cunn'
Submodule 'extra/cutorch' (https://github.com/torch/cutorch.git) registered for path 'extra/cutorch'