Skip to content

Instantly share code, notes, and snippets.

View yunchiri's full-sized avatar

yunchiri yunchiri

  • DDAStudio HifiveFootball
  • Korea, Suwon
View GitHub Profile
@yunchiri
yunchiri / GIF2MP4.swift
Created April 24, 2018 01:00 — forked from powhu/GIF2MP4.swift
Swift 3.0 GIF to MP4
//
// GIF2MP4.swift
//
// Created by PowHu Yang on 2017/1/24.
// Copyright © 2017 PowHu Yang. All rights reserved.
//
/*
let data = try! Data(contentsOf: Bundle.main.url(forResource: "gif", withExtension: "gif")!)
let tempUrl = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("temp.mp4")
GIF2MP4(data: data)?.convertAndExport(to: tempUrl, completion: { })
@yunchiri
yunchiri / gist:5346022
Created April 9, 2013 14:18
date file format
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
[dateFormatter setDateFormat:@"yyyyMMddhhmmss"];
fileName = [dateFormatter stringFromDate:[NSDate date]];