Skip to content

Instantly share code, notes, and snippets.

View ishaan1995's full-sized avatar
🏠
Working from home

Ishaan Kakkar ishaan1995

🏠
Working from home
View GitHub Profile
@ishaan1995
ishaan1995 / alert.swift
Created February 20, 2021 20:36
iOS common utilities while learning to add ui, alerts.
func addAlert(title: String, message: String) {
let alert = UIAlertController(
title: title,
message: message,
preferredStyle: .alert
)
alert.addAction(UIAlertAction(title: "Ok", style: .default, handler: nil))
self.present(alert, animated: true, completion: nil)
}
@ishaan1995
ishaan1995 / GPT4_Experiment1_React_Native_CodeGen.md
Last active April 8, 2023 09:11
Chat GPT4 Experiment 1: Writing custom react native components

Prompt 1

I am a beginner react native developer. I want to write a custom component to handle all maps related task (show map, markers, polygons & directions line) I am using react-native-maps library. Make a custom component called RRMapView which has following props:

  • show loader
  • allow scroll
  • allow zoom
  • show current location marker
  • markers (each having a lat lng coordinate, custom image as optional & unique id)
@ishaan1995
ishaan1995 / iterm2-solarized.md
Created May 23, 2024 09:28 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k