Skip to content

Instantly share code, notes, and snippets.

View loganknecht's full-sized avatar

Logan Knecht loganknecht

View GitHub Profile
@loganknecht
loganknecht / piano_gym_cursor_logic.tsx
Created October 29, 2022 07:30
Piano Gym Cursor Example
// -----------------------------------------------------------------------------
// Third-Party Libraries
// -----------------------------------------------------------------------------
import * as React from "react";
import { useInterval } from "react-use";
import scrollIntoView from "scroll-into-view";
// -----------------------------------------------------------------------------
// Custom Components
// -----------------------------------------------------------------------------
// ./
@loganknecht
loganknecht / bomb_feedback.cs
Last active September 13, 2022 05:45
A list of suggestions for the Corgi Engine's Bomb Class
using UnityEngine;
using System.Collections;
using MoreMountains.Tools;
using MoreMountains.Feedbacks;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@loganknecht
loganknecht / suggested_reading_material.md
Last active June 28, 2019 00:42
Suggested Reading Material

Overview

This is a "living" general document of noteworthy resources and information that I've found to be personally helpful.

Table of Contents

Table of Contents generated with DocToc

@loganknecht
loganknecht / Heroku Docker Deployment.md
Last active March 30, 2019 06:42
HOW TO: Heroku Docker Deployment
  1. Create Something to Deploy
    • Create a Dockerfile in the root directory of the project
      • The Dockerfile location determines the root directory that the docker file's environment is built from
        • I.E. it'll affect ADD, COPY, VOLUME, etc.
      • This should set up the environment for the project to run
      • IF THIS RELIES ON WEB TRAFFIC: a $PORT environment variable is required to be used because Heroku by default doesn't allow port selection. This means you need to rely on the environment having the $PORT variable available when crafting the launch command
        • Example: CMD gunicorn --bind 0.0.0.0:$PORT example.wsgi
    • Try to do all set up in here. A script will only complicate it and make it hard to understand deployment
  2. (Optional) Clean up
  • List existing remotes
@loganknecht
loganknecht / example.ml
Last active April 13, 2018 22:17
OCaml Lab 1 Head Scratching
type ('key, 'value) avlnode =
| Leaf
| Node of int *
'key *
'value *
('key, 'value) avlnode *
('key, 'value) avlnode
let rec get (node_to_search : ('key, 'value) avlnode)
(key_to_search_for : 'key)
@loganknecht
loganknecht / DuplicateHelper.cs
Created January 21, 2015 11:39
This is the DuplicateHelper.cs file I created for Unity to help make the tile map generation of my game Bathroom Brotocol go faster.
// Bathroom Brotocol can be seen here: http://bathroombrotocol.com
using UnityEditor;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
public class DuplicateHelper {
// This duplicates a game object and increments any number that is a part of its name
[MenuItem("Tools/Duplicate/Duplicate And Increment Name %#d")]