Skip to content

Instantly share code, notes, and snippets.

View AncAinu's full-sized avatar
👨‍💻
Working in stealth mode

Tancrède Chazallet AncAinu

👨‍💻
Working in stealth mode
View GitHub Profile
@AncAinu
AncAinu / Injector.swift
Last active July 24, 2018 11:13
Dependency injector for MVVM architectures in swift
//
// Injector.swift
//
// Created by Tancrède Chazallet on 11/07/2018.
// Copyright © 2018 BitBuildr Ltd. MIT Licence, feel free to use.
//
import Foundation
class Injector {
@detomon
detomon / CGAffineTransform.swift
Last active January 10, 2024 15:26
Convenient operator overloadings for CGPoint, CGSize and CGRect
import Foundation
/**
* CGAffineTransform
*
* var a = CGAffineTransformMakeRotation(45.0 * M_PI / 180.0)
* var b = CGPointMake(30.0, 43.3)
*/
/**
@Shilo
Shilo / SPTexture+Line.h
Last active December 20, 2015 14:19
A category for Sparrow that draws rounded lines via SPTexture and Core Graphics.
//
// SPTexture+Line.h
// Sparrow
//
// Created by Shilo White on 8/3/13.
//
#import "SPTexture.h"
#import "SPImage.h"
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 5, 2024 22:16
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: