Skip to content

Instantly share code, notes, and snippets.

View worthingtonjg's full-sized avatar

Jon Worthington worthingtonjg

View GitHub Profile
@worthingtonjg
worthingtonjg / 2022.md
Last active December 1, 2023 15:48
Work Logs

Jan

EPS - Looking into integrating ACS with EPS - decided against
ACS - Major Document Updates from Document Review
ACS - New Version of GAAC Info / Agenda View
GAR - Updating Attendee Picture Chart to work with new Event Type
ACS - Regional Facilities Manager Site
ACS - Removing remnants of ldschurch.org
ACS - New version of Tours and Reviews (WPF Migration)
@worthingtonjg
worthingtonjg / UnsolicitedPraise.md
Last active December 1, 2023 19:16
Unsolicited Praise

Unsolicited Praise

One thing that I have done the past few years is save bits of praise that have come my way from various people over the years. I find it rewarding to save these kinds of notes. They help me remember how I impacted people’s lives by the project that I work on. I think these notes say more about the people that wrote them and probably less about me. I've edited out last names to protect privacy.


From: Alan on November 29, 2023

Thanks for your help with CDS!

@worthingtonjg
worthingtonjg / DiabetesAndHealth.md
Last active May 19, 2022 15:52
Diabetes and Health

About Type 2 Diabetes

Type 2 Diabetes is a disease caused by Insulin resistance.

Insulin is a hormone produced by your pancreas that tells your cells to absorb energy and store fat. Your liver also has a lot to do with how your body stores fat and digests your food.

As we age, and as we gain weight, our cells become more and more resistant to Insulin and our bodies will try to produce more of it. At some point, if we don't change our diet, it becomes too much for our bodies to handle and it can damage our pancreas permanantly.

Many doctors do not understand that diabetes is a dietary issue can be fixed by simply changing how, what and when we eat (all three are important).

@worthingtonjg
worthingtonjg / Player.cs
Last active October 25, 2019 20:49
Character Controller - Simple Move
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public float rotationSpeed = 4f;
public float moveSpeed = 25f;
private CharacterController characterController;
https://www.youtube.com/watch?v=Tef42KUQMOk
@worthingtonjg
worthingtonjg / SceneLoader.cs
Created January 24, 2019 03:41
Combine multiple scenes into a single scene.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.Events;
using System.Threading;
using System;
public class SceneLoader : MonoBehaviour
{
@worthingtonjg
worthingtonjg / StateController.cs
Created December 27, 2018 05:52
Controller for simple state machine
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StateController<T> : MonoBehaviour where T : BaseState {
protected T currentState;
public void ChangeState(T newState) {
#if STATEMACHINE_DEBUG
@worthingtonjg
worthingtonjg / BaseState.cs
Created December 27, 2018 05:51
Base class for state in simple state machine
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BaseState {
public virtual void InitState () {
}
@worthingtonjg
worthingtonjg / SimpleFly.cs
Last active December 9, 2018 06:18
More complex than BasicFly.cs, cannot be placed directly on a camera, but instead requires a camera as a child. This script still moves using Transform.Translate (so will fly through colliders). Uses <space> and <shift> to rise or fall, and flies flat regardless of the vertical camera pitch. Designed to work similar to the Minecraft camera.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SimpleFly : MonoBehaviour {
public float rotationSpeed = 100.0f;
public float moveSpeed = 100f;
public float viewRange = 45f;
private Transform cameraTransform;
@worthingtonjg
worthingtonjg / BasicFly.cs
Last active December 9, 2018 06:19
Add this script to any Unity GameObject or Camera to enable it to fly around the scene. Will fly in the direction the camera is facing.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Camera))]
public class BasicFly : MonoBehaviour {
public float rotationSpeed = 100.0f;
public float moveSpeed = 100f;
public float viewRange = 45f;