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
I just finished interning at Apple so I wrote this up. It's kind of long, but I hope it clears some stuff up about LeetCode and Big Tech. I also posted this on Substack [with images](https://aheze.substack.com/p/getting-a-job-at-apple-without-going) if it's easier to read. Here goes! | |
- Learning To Code | |
- Prior Job Experience | |
- How Apple Found Me | |
- The Interview Process | |
- The Internship | |
- Big Tech | |
- College |
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
// MARK: - SceneDelegate | |
class SceneDelegate: UIResponder, UIWindowSceneDelegate { | |
var window: UIWindow? | |
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | |
let navigationController = UINavigationController(navigationBarClass: NavigationBar.self, toolbarClass: nil) | |
(navigationController.navigationBar as! NavigationBar).preferredHeight = 88 | |
navigationController.setViewControllers([ViewController()], animated: false) | |
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
struct OverflowLayout: Layout { | |
var spacing = CGFloat(10) | |
func sizeThatFits(proposal: ProposedViewSize, subviews: Subviews, cache: inout ()) -> CGSize { | |
let containerWidth = proposal.replacingUnspecifiedDimensions().width | |
let sizes = subviews.map { $0.sizeThatFits(.unspecified) } | |
return layout(sizes: sizes, containerWidth: containerWidth).size | |
} | |
func placeSubviews(in bounds: CGRect, proposal: ProposedViewSize, subviews: Subviews, cache: inout ()) { |
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
import SwiftUI | |
import Combine | |
import SceneKit | |
class ViewModel: ObservableObject { | |
var changeColor = PassthroughSubject<UIColor, Never>() | |
var cancellables = Set<AnyCancellable>() | |
} | |
struct ContentView: View { |
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
enum WorldParser { | |
/// process a world string, example: | |
/* | |
treasure | |
3x3 | |
gold diamond gold | |
diamond gold diamond | |
gold diamond gold | |
*/ |
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
enum Debug { | |
enum Level: String { | |
case error = "Error" | |
case warning = "Warning" | |
case log = "Log" | |
case network = "Network" | |
case success = "Success" | |
case note = "Note" | |
case sound = "Sound" |
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
/// Use UIKit blurs in SwiftUI. | |
struct VisualEffectView: UIViewRepresentable { | |
/// The blur's style. | |
public var style: UIBlurEffect.Style | |
/// Use UIKit blurs in SwiftUI. | |
public init(_ style: UIBlurEffect.Style) { | |
self.style = style | |
} |
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
Chihuahua | |
Japanese spaniel | |
Maltese dog, Maltese terrier, Maltese | |
Pekinese, Pekingese, Peke | |
Shih-Tzu | |
Blenheim spaniel | |
papillon | |
toy terrier | |
Rhodesian ridgeback | |
Afghan hound, Afghan |
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
struct ContentView: View { | |
var numberOfSegments = 4 | |
@State var currentSegment: Int? | |
@State var autoIncrementing = false | |
var period = CGFloat(0.8) | |
var body: some View { | |
VStack { | |
Text("Progress") | |
.bold() |
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
/// Use UIKit blurs in SwiftUI. | |
struct VisualEffectView: UIViewRepresentable { | |
/// The blur's style. | |
public var style: UIBlurEffect.Style | |
/// Use UIKit blurs in SwiftUI. | |
public init(_ style: UIBlurEffect.Style) { | |
self.style = style | |
} |