Skip to content

Instantly share code, notes, and snippets.

View sawissac's full-sized avatar
🌏
Searching for remote work

waux sawissac

🌏
Searching for remote work
  • Myanmar
  • 14:13 (UTC -12:00)
View GitHub Profile
@sawissac
sawissac / algo.md
Last active November 23, 2023 15:38
Algorithm part I [typescript, javascript]

Introduction

In computer science, understanding the time complexity of algorithms is crucial. Big-O notation is commonly used to describe the performance or complexity of an algorithm.

O(1) — Constant Time:

Constant Time Complexity describes an algorithm that will always execute in the same time (or space) regardless of the size of the input data set.

var array = [1, 2, 3, 4, 5];
array[0]; // This is a constant time look-up
@sawissac
sawissac / _nginx_docker_config.md
Created November 18, 2023 14:08 — forked from KostyaEsmukov/_nginx_docker_config.md
Nginx configuration sample for docker

Nginx production configuration sample

This config assumes that nginx is run from docker image _/nginx.

docker commands

docker network create nginx

mkdir -p /etc/myproject/nginx

cd /etc/myproject/nginx

@sawissac
sawissac / laravel-repo-service-command.md
Last active November 14, 2023 10:00
Laravel Repo Service Command

Step 1: Register the Provider

Initiate the provider creation process by executing the following make command:

php artisan make:provider RepositoryServiceProvider

This command will generate the RepositoryServiceProvider file within the app/Provider folder.

@sawissac
sawissac / vim-keys.md
Last active November 13, 2023 01:49
vim keys

Basic Movement

  • h – move cursor left
  • j – move cursor down
  • k – move cursor up
  • l – move cursor right

Moving by Lines

  • 0 – jump to beginning of the line
@sawissac
sawissac / docker-command.md
Last active September 20, 2025 13:39
Docker Command

Basic Commands

docker ps || docker container ls
docker images || docker image ls
docker version
docker info

Build