Skip to content

Instantly share code, notes, and snippets.

View andretodman's full-sized avatar

Andre andretodman

  • IOS / Android / Unity Engineer @ www.insight.fm | www.pubfuse.com
  • Boston, Ma USA
  • 03:25 (UTC -04:00)
View GitHub Profile
<!--
Tutorial code for: http://www.binpress.com/tutorial/generating-nice-movie-previews-with-ffmpeg/138
-->
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
</head>
<body>
<a href="https://www.youtube.com/watch?v=v1uyQZNg2vE" target="_blank" class="video-preview" data-frames="100" data-source="http://i.imgur.com/BX0pV4J.jpg"></a>
@andretodman
andretodman / AppLifecycleTracker.swift
Last active June 2, 2019 12:46
A Swift 4.0 class to keep track of the time an app is in background, foreground, terminated and suspended
//
// AppLifecycleTracker.swift
// A Swift 4.0 class to keep track of the time an app is in background, foreground, terminated and suspended
// Usage: var appLifecycleTracker:AppLifecycleTracker? = AppLifecycleTracker()
// Must enable CoreLocation update background mode to allow this to update in BG
// Privacy - Location Always and When In Use Usage Description must be in the plist
// Test by freeing ram while app is backgrounded to see last suspention time
//
// Created by Andre Todman on 10/19/18.
//
@andretodman
andretodman / MidiEvent.h
Created January 19, 2020 00:30
An Objective-C midi event class that is part of a sequencer engine that I wrote for iOS before CoreMidi. The class saves actual universal midi event packages but allows initializing events with simple Int parameters. The sequencer engine is a circular buffer that stores events played at the eventTimeInTicks. CoreMidi was first available in iOS 4…
//
// MidiEvent.h - Part of a music sequencer audio engine framework written by Andre Todman.
// Used in several audio applications in the App Store (2007-2010).
// Created by Andre Todman on 8/8/09.
//
// Copyright 2009 Pubfuse Inc. All rights reserved.
/* ******************************************************************************************* *\
* A midi event class that is part of a sequencer engine that I wrote for iOS before CoreMidi. *
* The class saves actual universal midi event packages but allows initializing events with *