I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Created by Marc Palmer on 13/02/2020. | |
// | |
// Usage: Add .debugMetrics(.yellow) or similar to any view | |
import Foundation | |
import SwiftUI | |
/// Renders the width and height of a view | |
struct DebugMetricsModifier: ViewModifier { | |
let colour: Color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//adapted from https://www.considerednormal.com/2014/04/adding-a-google-calendar-event-using-google-forms/ | |
//this is the ID of the calendar where you want the event to show up, this is found on the calendar settings page of the calendar in question | |
var calendarId = "YOUR_SECRET_CALENDAR_ID_GOES_HERE"; | |
//below are the column ids that represents the values used in the spreadsheet (these start with 1 rather than 0 like on some things) | |
//start date - make sure you also check the time box in the Google form (that's new- at least to me) | |
var startDtId = 5; | |
//end date - make sure you check the time box in the Google form | |
var endDtId = 7; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************** | |
/ Button: Email Affiliated Contacts / | |
/ Author: Matt Horine / | |
/ Client: Step Up to Serve / | |
/ Date: 28 January 2015 / | |
/ / | |
/ Description: Button on Affiliated Contacts / | |
/ related list to allow selection and email of / | |
/ affiliated contacts from the Account Page in / | |
/ the same way the Send an Email button allows / |