Skip to content

Instantly share code, notes, and snippets.

View D-Antonelli's full-sized avatar

Derya A. Antonelli D-Antonelli

  • England
  • 10:31 (UTC)
View GitHub Profile
import Foundation
extension Bundle {
func decode<T: Decodable>(_ file: String) -> T {
guard let url = self.url(forResource: file, withExtension: nil) else {
fatalError("Failed to locate \(file) in bundle")
}
guard let data = try? Data(contentsOf: url) else {
fatalError("Failed to load \(file) in bundle")
@D-Antonelli
D-Antonelli / gist:f3f9641b85fc04e64102e58f0e56dfcc
Created January 29, 2024 10:21
Xcode Source Control Cheat Sheet
+-----------------------------------------------------------------------------+
| Xcode Source Control Cheat Sheet |
+-----------------------------------------------------------------------------+
| [Setup & Clone] |
| 📦 Clone Repository: Intergate -> Clone |
| 🔗 Add Existing Remote: Source Control Navigator -> Repositories -> |
| -> Remotes -> Add Existing Remote |
+-----------------------------------------------------------------------------+
| [Working with Changes] |
| 📝 Commit Changes: Source Control Navigator -> your branch -> |
@D-Antonelli
D-Antonelli / languages.json
Created February 29, 2024 16:30
ISO 639-1 Alpha-2 language codes
[
{
"code": "aa",
"name": "Afar"
},
{
"code": "ab",
"name": "Abkhazian"
},
{
@D-Antonelli
D-Antonelli / prompt.txt
Created July 30, 2024 09:10
GBT4-o Prompt For Crafting Work Experience Based on Q&A
Help me write work experience in my resume in q&a format. Follow this format: You ask first question, I answer. You ask second question, I answer. Follow this for all questions. When you finish asking all questions, craft work experience. Please find example communication below:
You: Describe a significant project or task you completed.
Me: I integrated a third-party payment system.
You: What specific application did you build?
Me: I built a payment processing module for our e-commerce platform.