Skip to content

Instantly share code, notes, and snippets.

View yoosuf's full-sized avatar
🌍
Somewhere in Asia

yoosuf

🌍
Somewhere in Asia
View GitHub Profile
@yoosuf
yoosuf / findWord.go
Last active March 19, 2023 05:48
Scopic Live Code Test : You're given an array that shows the relative positions of the letters of a word. Your task is to find the word hidden behind the array.
package main
import (
"fmt"
)
func findWord(arr []string) string {
word := ""
temp := make(map[string]string)
@yoosuf
yoosuf / stopnremoveall.sh
Created August 14, 2019 01:48
Stop and remove all docker containers and images (Docker)
# List all containers (only IDs)
docker ps -aq
# Stop all running containers
docker stop $(docker ps -aq)
# Remove all containers
docker rm $(docker ps -aq)
# Remove all images