Skip to content

Instantly share code, notes, and snippets.

Donovan Keith donovankeith

Block or report user

Report or block donovankeith

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
@donovankeith
donovankeith / README.md
Last active Sep 3, 2018
Variable Framerate .mov to 30 fps mp4 Converter Batch Script Generator
View README.md

FFmpeg Convert to non-variable 30 FPS MP4

NOTE: For the most recent version of this Script, please go to this GitHub Gist

This Python Script searches for all video files matching a specific pattern in the same directory (sub-directories not included) and then generates a Windows Batch Script (UseOnce.cmd) you can then execute to convert those matching video files into Non-Variable 30fps MP4s.

Background

At Cineversity.com we often find ourselves converting large numbers of poorly formed .mov files to 30 FPS non-variable .mp4 files

@donovankeith
donovankeith / IOTButtonForIFTT.ino
Last active Nov 16, 2017
Arduino IoT Button with the LoLin Node MCU v3
View IOTButtonForIFTT.ino
/**
* IOTButtonForIFTT.ino
* Connects to Wifi, Retrieves a URL, Blinks LED on if Successful
* Be sure to adjust the User Inputs below.
*
* 2017/11/16 Modified by
* Donovan Keith <donovanskeith@gmail.com>
*
* Based On:
* BasicHttpClient.ino by
@donovankeith
donovankeith / ArduinoOSC.ino
Last active Nov 9, 2017
Simple test project for driving RGB led with OSC messages.
View ArduinoOSC.ino
/*
Send and receive OSC messages between NodeMCU and another OSC speaking device.
Send Case: Press a physical button (connected to NodeMCU) and get informed about it on your smartphone screen
Receive Case: Switch an LED (connected to NodeMCU) on or off via Smartphone
Written by Jackson Campbell <jcampbell@calarts.edu>
Modified by Donovan Keith <dkeith@calarts.edu>
for [Augmenting Realities](https://sites.google.com/view/augmentingrealities/home)
@donovankeith
donovankeith / ArduinoSerialIO.cs
Last active Oct 19, 2017
Unity Arduino Input/Output
View ArduinoSerialIO.cs
/* Arduino Serial I/O
* Allows you to send simple commands to an arduino and to receive data back.
*
* Source based on: https://www.alanzucconi.com/2015/10/07/how-to-integrate-arduino-with-unity/
*
* ## Setup
* 1. Edit > Player Settings
* 2. .NET Compatibility Level = `.NET 2.0`
*/
@donovankeith
donovankeith / ScrubAnimation.cs
Created Sep 28, 2017
A Unity Script for Scrubbing Animations
View ScrubAnimation.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ScrubAnimation : MonoBehaviour {
private Animator anim;
public string animClipName;
float normalizedTime = 0f;
@donovankeith
donovankeith / PrimitiveMover.cs
Created Apr 5, 2017
Simple Example of Enums and Switch Statements
View PrimitiveMover.cs
// PrimitiveMove.cs
// Creates a simple primitive in Unity and moves it in a user-selected driection.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PrimitiveMover : MonoBehaviour {
public enum Shape {Box, Ball, Pill};
@donovankeith
donovankeith / Fade.cs
Created Mar 1, 2017
Fades light intensity Up/Down when you press the Up/Down arrow keys.
View Fade.cs
// Fade.cs
// Fades light intensity Up/Down when you press the Up/Down arrow keys.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Fade : MonoBehaviour {
// User Inputs
@donovankeith
donovankeith / MousePaint.cs
Created Feb 9, 2017
MousePant: A simple unity script for cloning objects as you click/drag.
View MousePaint.cs
// MousePaint.cs
// Paints objects when you click and drag.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MousePaint : MonoBehaviour {
public GameObject stamp;
@donovankeith
donovankeith / ToggleLight.cs
Created Feb 8, 2017
C# Unity Script: Toggles a light on/off when user presses the `L` key.
View ToggleLight.cs
// ToggleLight.cs
// Turns the light component of this object on/off when the user presses and releases the `L` key.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ToggleLight : MonoBehaviour {
Light light;
@donovankeith
donovankeith / RGBLight.cs
Created Feb 8, 2017
Unity Script: Changes light to Red/Green/Blue when user press `R`, `G`, or `B` keys.
View RGBLight.cs
// RGBLight.cs
// Changes light to Red/Green/Blue when user press `R`, `G`, or `B` keys.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RGBLight : MonoBehaviour {
Light light;
You can’t perform that action at this time.