Skip to content

Instantly share code, notes, and snippets.

tenpn / LogSeverityTracker.cs
Created September 12, 2020 19:57
Unity Test Framework provides LogAsset to validate the output of the log, but at this time it only lets you prescribe what should appear. We don't care about Debug.Log() output, but want to know if there was anything worse than that. Particularly, in our case, we'd like to fail for warnings as well as errors. Too many "benign" warnings can hide …
View LogSeverityTracker.cs
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.TestTools;
using NUnit.Framework;
using System.Linq;
namespace Roll7
/// <summary>
/// This tracker will assert for both warnings and errors.
tenpn / CustomSingleContextFactory.cs
Created November 22, 2017 10:33
fixed CustomSingleContextFactory
View CustomSingleContextFactory.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TenPN.DecisionFlex;
using System;
public class CustomSingleContextFactory : SingleContextFactory
public override IContext SingleContext(Logging loggingSetting)
View NewTree.yaml
model: special_treasure
for: players
reward: coins
health: 1
View NewFisherman.yaml
model: npc_fisherman
- [biome2_plant_ingredient, 2]
replacedBy: npc_fisherman
clickSpeech: NPCCrafting_npc_fisherman
tenpn /
Created April 14, 2015 17:12

Keybase proof

I hereby claim:

  • I am tenpn on github.
  • I am tenpn ( on keybase.
  • I have a public key whose fingerprint is 17CD 731F C8B6 3FB1 A36E E0D1 757A DD2D 39AC 1E84

To claim this, I am signing this object:

tenpn / BooleanConsideration.cs
Created January 12, 2015 07:23
From DecisionFlex v1.1
View BooleanConsideration.cs
// ******************************************************************************************
// DecisionFlex, (c) Andrew Fray 2015
// ******************************************************************************************
using UnityEngine;
using System;
namespace TenPN.DecisionFlex
tenpn / gist:477886be4bb9d6671dbd
Last active August 29, 2015 14:13
My boxstarter
View gist:477886be4bb9d6671dbd
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst unity
cinst steam
cinst emacs
cinst googlechrome
cinst git
cinst dropbox
tenpn / SymbolicationEnabler.cs
Last active January 11, 2016 06:31 — forked from capyvara/gist:5230032
SymolicationEnabler unity post-processor
View SymbolicationEnabler.cs
The MIT License (MIT)
Copyright (c) 2014 Andrew Fray, Marcelo Oliveira
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
tenpn / MersenneTwister.cs
Last active December 25, 2015 14:19
A C# Mersenne Twister that is serialisable. A bitch of a copyright field.
View MersenneTwister.cs
// C# Version Copyright (c) 2003 CenterSpace Software, LLC //
// & Spry Fox LLC (c) 2013 //
// //
// This code is free software under the Artistic license. //
// //
// CenterSpace Software //
// 2098 NW Myrtlewood Way //
// Corvallis, Oregon, 97330 //
// USA //
tenpn / oldmergedbranches.ps1
Created October 9, 2012 08:56
a very powershell-y way of getting the most unused git branches. makes an object with properties and sorts it.
View oldmergedbranches.ps1
git branch -r --merged develop | %{$_.trim()} | select @{n='Branch';e={$_}},@{n='LastCommit';e={[datetime](git log $_ -1 --pretty=format:%ci)}} | sort LastCommit