Skip to content

Instantly share code, notes, and snippets.

Matt Cheetham MattCheetham

Block or report user

Report or block MattCheetham

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MattCheetham
MattCheetham / SegmentedCircularProgressView.swift
Created Jun 19, 2018
A circular progress view. Essentially it is a circle broken up into segments much like the loading indicator on watchOS when installing and update. It's also IBDesignable to make your life easier.
View SegmentedCircularProgressView.swift
//
// SegmentedCircularProgressView.swift
//
// Created by Matthew Cheetham on 18/06/2018.
//
import UIKit
@IBDesignable
/// A circular progress view broken out into individual segments. You can highlight individual segments to indicate progress in a clockwise fashion
View DeathToTimezones.swift
//: Playground - noun: a place where people can play
import UIKit
/// We're working with appointments.
/// So I get this string from the server and in some places I need to display it in the users local timezone and in other places I need to display it as the time and date that it was booked
var serverTimeString = "2017-03-21T19:00:00-07:00"
let localisedDateFormatter = DateFormatter()
View keybase.md

Keybase proof

I hereby claim:

  • I am MattCheetham on github.
  • I am mattcheetham (https://keybase.io/mattcheetham) on keybase.
  • I have a public key whose fingerprint is A118 0B37 248C FA4D 7D77 76D2 A883 21A9 7326 59D5

To claim this, I am signing this object:

@MattCheetham
MattCheetham / forwarding.swift
Created Apr 29, 2016
Forwarding calls to in ObjC to internal swift methods
View forwarding.swift
@objc public class TSCDevice: NSObject {
internal let mySwiftObject = Device()
override public func forwardingTargetForSelector(aSelector: Selector) -> AnyObject? {
if mySwiftObject.respondsToSelector(aSelector) == true {
return mySwiftObject
@MattCheetham
MattCheetham / siri_homekit_colours.txt
Last active Aug 30, 2019
Siri HomeKit Light Colours
View siri_homekit_colours.txt
// A list of all colours that Siri understands when controlling light bulbs. E.g. "Hey Siri, set the bedroom lights to red"
// Please contribute any that you have come accross
Blue
Red
Green
Yellow
White
Champagne
Direct Sunlight
View gist:56d9b95d4718cd86d791
http://bmthapi.mattcheetham.co.uk:28000/policeStations
http://bmthapi.mattcheetham.co.uk:28000/fireStations
http://bmthapi.mattcheetham.co.uk:28000/ambulanceStations
http://bmthapi.mattcheetham.co.uk:28000/lifeboatStations
http://bmthapi.mattcheetham.co.uk:28000/coastguardStations
http://bmthapi.mattcheetham.co.uk:28000/publicConveniences
http://bmthapi.mattcheetham.co.uk:28000/primarySchools
http://bmthapi.mattcheetham.co.uk:28000/secondarySchools
http://bmthapi.mattcheetham.co.uk:28000/religiousSchools
http://bmthapi.mattcheetham.co.uk:28000/specialSchools
You can’t perform that action at this time.