Skip to content

Instantly share code, notes, and snippets.

View jbubriski's full-sized avatar

John Bubriski jbubriski

View GitHub Profile
jbubriski / BuildSceneProcessor.cs
Created November 8, 2016 16:23 — forked from mrcarriere/BuildSceneProcessor.cs
Automatically add a scene to your Build Settings when you create or save the scene. Scenes that are ignored will not re-prompt for the current session.
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
// docs:
public class BuildSceneProcessor : UnityEditor.AssetModificationProcessor
private const string DIALOG_TITLE = "Add to Build Settings?";
private const string DIALOG_MSG = "Add to build settings for inclusion in future builds?";
jbubriski / LightFlickerEffect.cs
Created September 10, 2021 19:44 — forked from sinbad/LightFlickerEffect.cs
Unity simple & fast light flicker script
using UnityEngine;
using System.Collections.Generic;
// Written by Steve Streeting 2017
// License: CC0 Public Domain
/// <summary>
/// Component which will flicker a linked light while active by changing its
/// intensity between the min and max values given. The flickering can be
/// sharp or smoothed depending on the value of the smoothing parameter.
jbubriski / CollectionExtensions.cs
Created June 2, 2021 18:05 — forked from codeimpossible/CollectionExtensions.cs
Sound Effect Scriptable Object
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace NoirLib {
public static class CollectionExtensions {
private static readonly System.Random _rand = new System.Random();
public static T Random<T>(this T[] items) {
<!-- Have a bunch of redirects? Put them in a separate file -->
<rules configSource="Rewrites.config" />
<!-- Simple rewrite -->
<rule name="Simple redirect" stopProcessing="true">
<match url="^path/sub path/page\.aspx$" />
<action type="Rewrite" url="/newpath.aspx" />
You can find existing browser definitions at
<!-- File: MyAdapters.browser -->
<browser refID="Default">
<adapter controlType="System.Web.UI.WebControls.DropDownList" adapterType="DropDownListAdapter" />
jbubriski / CameraCollision.cs
Created May 2, 2019 15:25
CameraCollision for Unity
public class CameraCollision : MonoBehaviour
private Vector3 _dollyDirection;
private Vector3 _dollyDirectionAdjusted;
private float _distance;
public float MinDistance = 1.0f;
public floar MaxDistance = 4.0f;
public float Smooth = 1.0f;
jbubriski / CsvWriter.cs
Created May 24, 2013 20:09
A CSV Writer that can be used to write directly to a response stream in ASP.NET
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace DataUtils
/// <summary>
/// Derived from Richard Carr's (Black Wasp) CsvWriter class at
jbubriski / IServiceProvider.cs
Created March 13, 2012 19:36
A generic service provider to simplify Controller constructors and testing in ASP.NET MVC.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public interface IServiceProvider
T GetService<T>() where T : class;


  • Fix holes in level.
  • Copy over relevant game objects.
  • Remove old proc gen.
  • Setup basic nav mesh for proc gen'd objects (A*).
  • Wire up main menu to new scene.
  • Fix character spawning.
  • Incorporate selected character.
  • Fix enemy AI/Pathfinding.
jbubriski / rebuild-all-indexes.sql
Last active February 22, 2018 17:29
This will rebuild all the indexes in your DB.
-- From
DECLARE @TableName varchar(255);
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'base table'
OPEN TableCursor