Skip to content

Instantly share code, notes, and snippets.

@tylerlindell
tylerlindell / reduce_faces.py
Last active Jul 4, 2022
script for reducing faces programmatically with Meshlab's api
View reduce_faces.py
#!/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%)
View devEnvInstall.bat
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
View TargetFrameRate.cs
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;
View TargetController.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TargetController : MonoBehaviour
{
public bool isTracked = true;
}
View Optimizer.cs
/*
* 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;
View LocomotionController.cs
/*
* 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 Sep 26, 2017
updated files from Unity NEAT for getting the bouncing cubes
View LocomotionController.cs
/*
* LocomotionController is responsible for each individual Smart Unit
*/
using System.Collections;
using System.Collections.Generic;
using SharpNeat.Phenomes;
using UnityEngine;
public class LocomotionController : UnitController
View LocomotionController.cs
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 Dec 31, 2018
generate random colors
View random-color.service.ts
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 Apr 12, 2017
errors when installing torch-distro
View torch-distro_install_build errors
$ ./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'