Skip to content

Instantly share code, notes, and snippets.

View xuvw's full-sized avatar
🎯
Focusing

He Ke xuvw

🎯
Focusing
  • Beijing China.
View GitHub Profile
@xuvw
xuvw / GIF-Screencast-OSX.md
Created February 2, 2016 08:18 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

/*
* This is an example provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
#import "VMUIKitMainThreadGuard.h"
#import <objc/runtime.h>
#import <objc/message.h>
#import <UIKit/UIKit.h>
/**
* This installs a small guard that checks for the most common threading-errors in UIKit.
* This won't really slow down performance but still only is compiled in DEBUG versions.
* @note No private API is used here.