Skip to content

Instantly share code, notes, and snippets.

View nanosoftonline's full-sized avatar

Nanosoft nanosoftonline

View GitHub Profile
@nanosoftonline
nanosoftonline / crm.yaml
Last active May 8, 2025 06:59
Swagger CRM Spec
openapi: 3.0.3
info:
title: CRM API
version: 1.0.0
description: API definition for a Customer Relationship Management system
servers:
- url: http://localhost:3000/api # Replace with your actual base URL
components:
@nanosoftonline
nanosoftonline / Alerts.swift
Created April 4, 2025 12:24
Alert in SwiftUI
import SwiftUI
struct Alerts: View {
@State private var alertMessage = ""
@State private var alertTitle = ""
@State private var showAlert = false
var body: some View {
VStack {
Button(action: clickHandler) {

Diving into SKT: Types, Numbers, Booleans, and Strings

In the modern world of app and web development, three languages are making waves: Swift, Kotlin, and TypeScript (SKT). While each has its own domain (iOS, Android, and Web, respectively), they share fundamental concepts, especially when it comes to basic data types. Let's take a quick tour through numbers, booleans, and strings in these powerful languages.

Types: The Foundation

All three languages are statically typed, meaning you explicitly (or implicitly) define the type of a variable. This helps catch errors early and improves code readability.

  • Swift: Known for its type safety, Swift strongly encourages explicit type declarations.
  • Kotlin: Like Swift, Kotlin is statically typed and offers type inference, reducing boilerplate.
@nanosoftonline
nanosoftonline / file1.txt
Created March 10, 2023 07:36
My new gist
This is some content for file1.txt
@nanosoftonline
nanosoftonline / readme.md
Last active August 10, 2022 08:20
Scaffold a CRA with react router and redux

The quickest way to get up and running

npx create-react-app <my-app-name> --template redux-typescript 

This will create a starting project using the redux toolkit

Change the app.tsx file to

@nanosoftonline
nanosoftonline / Powerlevel10kMac.md
Last active February 7, 2024 00:31
Setup iTerm, Oh My Zsh and Powerlevel10k on Mac

Install iTerm

https://iterm2.com/downloads.html

Install Oh My Zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"