Skip to content

Instantly share code, notes, and snippets.

View jeffcrouse's full-sized avatar

Jeff Crouse jeffcrouse

View GitHub Profile
@ofZach
ofZach / gist:787439f86753b7c6a8c6
Created November 26, 2014 05:09
singleton template
#include <stddef.h> // defines NULL
template <class T>
class Singleton{
public:
static T* Instance() {
if(!m_pInstance) m_pInstance = new T;
assert(m_pInstance != NULL);
return m_pInstance;
}
protected:
@danpaluska
danpaluska / 4panelmaker.sh
Created May 18, 2010 01:53
4panel movie maker script
#Script to make multi frame movies.
# how to export to frames:
# ffmpeg -i yourmovie.avi -sameq ../Outputdir/frame%4d.jpg
# or use -f image2 as export option.
# names the frames as frame0001.jpg, frame0002.jpg, etc.
# for long movies use %5d.jpg
#choose four prefixes
DA="gow";