Skip to content

Instantly share code, notes, and snippets.

@derwodaso
derwodaso / ScriptingDefineSymbolToggler.cs
Created March 14, 2017 10:34
Disable / Enable ScriptingDefineSymbolds from menu
/* To avoid performance issues caused by string constructions when logging stuff
* to the console, simply surround the code with the the following:
*
* #if DEBUG_LOGGING
* Debug.Log("my" + numer.ToString("0.00") " super" + " expensive " + " string building code");
* #endif
*
* When creating a non-debug build or testing the game for performance, simply disable
* the debug messages from the Unity menu (menu name can be simply changed below).
*/
@ChaseFlorell
ChaseFlorell / HockeyApp.psm1
Created May 22, 2016 21:08
Powershell upload to HockeyApp
#region Private Functions
function Get-AsciiBytes($str){
return [System.Text.Encoding]::ASCII.GetBytes($str)
}
function Write-MultiPartProperty {
param(
[parameter(Mandatory=$true)][System.IO.MemoryStream] $body,
[parameter(Mandatory=$true)][string] $boundary,
[parameter(Mandatory=$true)][string] $key,