$ docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# List of potentially safe-to-remove packages | |
CANDIDATES=( | |
# run brew ls | |
) | |
REMOVABLE=() | |
echo "Checking reverse dependencies of candidate formulas..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const colorMap = { | |
red: "#f00", | |
green: "#0f0", | |
blue: "#00f", | |
} as const; | |
type Color = keyof typeof colorMap; | |
type LooseAutocomplete<T extends string> = T | (string & {}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type User = { | |
id: string; | |
username: string; | |
email: string; | |
password: string; | |
isActive: boolean; | |
roles: ("admin" | "user" | "guest")[]; | |
}; | |
type Profile = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to display usage information | |
usage() { | |
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]" | |
exit 1 | |
} | |
# Check if at least one argument (input file) is provided | |
if [ $# -lt 1 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1, | |
"title": "The Galactic Journey", | |
"release_year": 2023, | |
"genre": ["Sci-Fi", "Adventure"], | |
"director": "Jane Doe", | |
"cast": [ | |
{"name": "John Smith", "role": "Captain Stellar"}, | |
{"name": "Emma Johnson", "role": "Lieutenant Nova"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
choice= 1 | |
v= [] | |
indices= [] | |
val= 0 | |
j= 0 | |
datadict= {1:('beer', 'wine', 'spirit', 'cider'), 2:('eggs', 'beef', 'chicken', 'honey'), 3:('lion', 'tiger', 'dog', 'cat'), 4:('eminem', 'mohit', 'sunjay', 'amitabh'), 5:('lamborghini', 'porche', 'bmw', 'audi')} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randint | |
l = ['stone', 'paper', 'scissor'] | |
choice="" | |
print("\nWelcome to Stone, Paper, Scissor\n"); | |
print("\nInstructions:\nEnter 'stone', 'paper', 'scissor' pr 'exit' only(Without quotes)\n") | |
def play(c): | |
v= randint(0, 2) | |
print("\nComputer's Choice: "+l[v]) |