Skip to content

Instantly share code, notes, and snippets.

View cleexiang's full-sized avatar
🎯
Focusing

C.L cleexiang

🎯
Focusing
View GitHub Profile
import UIKit
import AVFoundation
import Photos
import MobileCoreServices
class ViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
startVideoToGIFProcess()
source ~/.bash_profile
cd ${SRCROOT}
/path/to/xctool.sh -reporter json-compilation-database:compile_commands.json clean
/path/to/xctool.sh -reporter json-compilation-database:compile_commands.json build
oclint-json-compilation-database | sed 's/\(.*\.\m\{1,2\}:[0-9]*:[0-9]*:\)/\1 warning:/'
import Foundation
extension String
{
var length: Int {
get {
return countElements(self)
}
}