Skip to content

Instantly share code, notes, and snippets.

View bwheatley's full-sized avatar

Will Wheatley bwheatley

View GitHub Profile
#!/bin/sh -f
# Trigger a new Travis-CI job.
# Ordinarily, a new Travis job is triggered when a commit is pushed to a
# GitHub repository. The trigger-travis.sh script provides a programmatic
# way to trigger a new Travis job.
# Usage:
# trigger-travis.sh [--pro] [--branch BRANCH] GITHUBID GITHUBPROJECT TRAVIS_ACCESS_TOKEN [MESSAGE]
# For example:
@bwheatley
bwheatley / CameraSettings.cs
Created March 3, 2018 13:02
Being able to serialize a class with generics in Unity Inspector
public class CameraSettingsGeneric<T, U>
{
[HideInInspector] public T camera;
public float minZoom = 1f;
public float maxZoom = 5f;
public float zoomAmount = 5f;
[HideInInspector]
//public CraftFacade followObject;
public U followObject;