Skip to content

Instantly share code, notes, and snippets.

View richy486's full-sized avatar
🐶
Experimenting

Richard Adem richy486

🐶
Experimenting
View GitHub Profile
@richy486
richy486 / new app stuff.txt
Last active October 18, 2019 17:38 — forked from anonymous/new app stuff.txt
Stuff to put in each new app project.
# Add a carthage Cartfile
github "username/Project" ~> 1.0
git "https://github.com/username/Project.git" "branch"
# Update carthage
carthage update --platform ios
# Run script
/usr/local/bin/carthage copy-frameworks
$(SRCROOT)/Carthage/Build/iOS/[framework]
@richy486
richy486 / RSTimingFunction+CAMedia.h
Last active April 15, 2016 17:31 — forked from raphaelschaad/RSTimingFunction.h
All the cool animation curves from `CAMediaTimingFunction` but not limited to use with CoreAnimation. See what you can do with cubic Bezier curves here: http://netcetera.org/camtf-playground.html To get started just "Download Gist", throw the .h and .m files into your Xcode project and you're good to go!
//
// RSTimingFunction+CAMedia.h
//
// Created by Richard Adem for Raphael Schaad's RSTimingFunction
//
#import "RSTimingFunction.h"
@interface RSTimingFunction (CAMedia)
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
+ (NSString *) platform;
//
// NSString-truncateToSize
// Fast Fonts
//
// Created by Stuart Shelton on 28/03/2010.
// Copyright 2010 Stuart Shelton.
//
// NSString truncate function for Objective C / iPhone SDK by
// Stuart Shelton is licensed under a Creative Commons Attribution 3.0
// Unported License (CC BY 3.0)