Skip to content

Instantly share code, notes, and snippets.

John Bubriski jbubriski

Block or report user

Report or block jbubriski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jbubriski
jbubriski / CameraCollision.cs
Created May 2, 2019
CameraCollision for Unity
View CameraCollision.cs
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
jbubriski / rebuild-all-indexes.sql
Last active Feb 22, 2018
This will rebuild all the indexes in your DB.
View rebuild-all-indexes.sql
-- From https://gallery.technet.microsoft.com/scriptcenter/Script-for-rebuilding-all-8d079754
DECLARE @TableName varchar(255);
DECLARE TableCursor CURSOR FOR
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'base table'
OPEN TableCursor
@jbubriski
jbubriski / rebuild-all-indexes.sql
Created Feb 22, 2018
This will rebuild all the indexes in your DB.
View rebuild-all-indexes.sql
DECLARE @TableName varchar(255);
DECLARE TableCursor CURSOR FOR
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'base table'
OPEN TableCursor
FETCH NEXT FROM TableCursor INTO @TableName
@jbubriski
jbubriski / rebuild-all-indexes.sql
Created Feb 22, 2018
This will rebuild all the indexes in your DB.
View rebuild-all-indexes.sql
DECLARE @TableName varchar(255);
DECLARE TableCursor CURSOR FOR
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'base table'
OPEN TableCursor
FETCH NEXT FROM TableCursor INTO @TableName
@jbubriski
jbubriski / rebuild-all-indexes.sql
Created Feb 22, 2018
This will rebuild all the indexes in your DB.
View rebuild-all-indexes.sql
DECLARE @TableName varchar(255);
DECLARE TableCursor CURSOR FOR
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'base table'
OPEN TableCursor
FETCH NEXT FROM TableCursor INTO @TableName
View todo.md

TODO

  • 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
jbubriski / GameManager.cs
Created Nov 23, 2017 — forked from codeimpossible/GameManager.cs
Cross Platform GamePad Input for Unity
View GameManager.cs
using System;
using UnityEngine;
public class GameManager : MonoBehaviour {
public IInputSystem Input;
public static GameManager Instance;
void Awake() {
@jbubriski
jbubriski / parse.cs
Last active May 25, 2017
C# SubDomain Parsing
View parse.cs
void Main()
{
var testCases = new[] {
null,
"",
"localhost",
"johnnycode.com",
"blog.johnnycode.com",
"a.b.c.blog.johnnycode.com"
};
@jbubriski
jbubriski / Program.cs
Created Mar 24, 2017
Dijkstra's Algorithm Setup.cs
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CallStackExample
{
class Program
{
@jbubriski
jbubriski / test.rb
Created Mar 7, 2017
Test Jekyll Plugin. Place in default _plugins directory. Then run `jekyll build` and you should see some output from the plugin.
View test.rb
module Jekyll
class TestGenerator < Generator
def generate(site)
print "Testing generator\n"
end
end
end
You can’t perform that action at this time.