I love automating things. And one thing I’ve really been into recently is Apps Script by Google, automating a lot of my Google Workspace workflows. Google Apps Script is a tool that allows you to automate tasks in Google Workspace. As is tradition when learning a new programming language, in our case, Apps Script isContinue reading “How to Write Hello World Function in Apps Script”
Category Archives: Uncategorized
What is Apache Airflow?
What is it? I work on a system called Apache Airflow. Airflow is used as an orchestration system which means that it is a system that schedules and does work for you. The primary use cases of Apache Airflow are ETL e.g. extracting data from someplace, transforming it in some way, then loading it (moving)Continue reading “What is Apache Airflow?”
How to create a multi-line text field in SwiftUI? (Xcode 13.4.1, Swift5)
Use TextEditor in SwiftUI to create something like a multi-line text field in your apps! Handy functionality courtesy of Apple. 🙂
How to pretty print a dictionary in Python within a terminal?
There’s a built-in module in Python called pprint it allows you to “pretty print” data structures in Python. To use it import the module, and wrap anything you want to print with pprint instead of print. Remember to force width if you have a dictionary that fits on a single line. From the docs SingleContinue reading “How to pretty print a dictionary in Python within a terminal?”
GraphQL advantage: a single endpoint for all the data
I haven’t used much of GraphQL but it seems like the main selling point is that as a client you can just query one endpoint, instead of multiple with traditional REST API’s. There’s probably much give and take here, given that it might relieve clients from having to wrangle endpoints to get their data butContinue reading “GraphQL advantage: a single endpoint for all the data”
Why I love to use Sourcegraph for my own projects
At my current place of employment, Lyft, we use Sourcegraph which is an open source tool that allows you to search across many, many repos at once. It’s basically Google for any and all code. I also use Sourcegraph on my own projects to search across my own projects or ramp up on open sourceContinue reading “Why I love to use Sourcegraph for my own projects”
How to authorize requests to Google Calendar API
Though I use Python here, the flow should generally be the same across all languages and APIs. You don’t have to be a Python or flask expert to understand this post as it’s more about the OAuth2 lifecycle with Google APIs but, I recommend having the docs open on flask and Python to understand someContinue reading “How to authorize requests to Google Calendar API”
How to create a capsule button with text in SwiftUI (Xcode 13.1, iOS 14+, Swift5)
Use the .overlay with a view and the built-in Capsule shape to create a capsule button with text in SwiftUI.
How to detect first time app launch in SwiftUI
You can use @AppStorage in SwiftUI which wraps over UserDefaults to detect whether a user has been onboarded onto your app or not.
How to indicate page index on pagination with TabView in SwiftUI
You can use indexViewStyle and set the display to always to show to users which page they are on within TabView.