Skip to content

Instantly share code, notes, and snippets.

View SikandAlex's full-sized avatar
💭
Writing Code, Starting Riots

Alex Sikand SikandAlex

💭
Writing Code, Starting Riots
View GitHub Profile
@SikandAlex
SikandAlex / gradientScraper.py
Created May 1, 2020 04:05
Python/Selenium script for scraping the hex codes from the gradients on uigradients.com
from selenium import webdriver
import time
import json
names = []
driver = webdriver.Chrome('/Users/alex/Downloads/chromedriver')
driver.implicitly_wait(10)
# Get the page
@SikandAlex
SikandAlex / BannerCard.swift
Last active October 17, 2024 22:21
SwiftUI Banner Card Component
struct BannerCard : View {
var colors: [Color]
var bodyText: String
var titleText: String
var showArrow: Bool
var buttonText: String
var body: some View {
VStack(alignment: .leading, spacing: 0) {
@SikandAlex
SikandAlex / README.md
Last active April 3, 2020 22:11
Firebase Initialize User Data (Firebase Auth Trigger -> Firestore)

What is this?

This deployable Firebase function is used to create a new document with an ID corresponding to a newly created user's UID.

I created this gist so that this code could be easily re-used in future development projects that use Firebase as a backend.

To delete a user's document in the 'users' collection when their Firebase Auth account is deleted, use the following pre-built extension. https://firebase.google.com/products/extensions/delete-user-data

Suggested Reading