# Running a container
# '-d' flag: Run container in background and print container ID
# '--name string' flag: Assign a name to the container
# '-p' flag: Publish a container's port(s) to the host
This file contains 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/zsh | |
homebrew_fomulas=( | |
bat | |
btop | |
curl | |
docker | |
fzf | |
gawk | |
gsed |
This file contains 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
/// `TextBorderOptions` is a structure used to specify the configuration for text borders. | |
/// | |
/// # Fields | |
/// | |
/// * `border_char` - The character used to create the border. | |
/// * `border_thickness` - A tuple specifying the border thickness in the order (left, top, right, bottom). | |
/// * `margin_thickness` - A tuple specifying the margin thickness in the order (left, top, right, bottom). | |
/// * `prevent_trim` - A boolean flag indicating whether to prevent trimming whitespace from the message. | |
/// | |
/// # Examples |
This file contains 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
public enum USState | |
{ | |
ALABAMA = "AL", | |
ALASKA = "AK", | |
ARIZONA = "AZ", | |
ARKANSAS = "AR", | |
CALIFORNIA = "CA", | |
COLORADO = "CO", | |
CONNECTICUT = "CT", | |
DELAWARE = "DE", |
This file contains 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
import fs from 'fs'; | |
import path from 'path'; | |
/** | |
* resolveFilePaths returns the absolute paths of files contained with a | |
* directory and it's sub directories. | |
* @param dirPath the parent path | |
* @returns The absolute paths of the files | |
*/ | |
export async function resolveFilePaths(dirPath: string): Promise<string[]> { |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>STG Dev Center Random Name Selector</title> | |
<link | |
rel="stylesheet" | |
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
void fizzbuzz() | |
{ | |
for (int i = 1; i < 101; i++) | |
{ | |
char s[9] = ""; | |
if (i % 3 == 0) |
This file contains 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
package main | |
import "fmt" | |
func main() { | |
permutations := createPermutations("abc") | |
fmt.Println(permutations) | |
} | |
func createPermutations(s string) (permutations []string) { |
This file contains 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
#!/usr/bin/env python3 | |
"""Sort Extensions | |
This script sorts the files within the passed directories by file extensions. A | |
new directory will be created for each file extensions within the passed parent | |
directory with the respective extensions names. Files with matching extensions | |
will be moved into the new directory. | |
BEFORE FILE TREE EXAMPLE: |
This file contains 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
#!/usr/bin/env python3 | |
import turtle | |
# Adjust this value to increase or decrease the ball's movement speed. | |
BALL_PIXELS_PER_MOVEMENT = .15 | |
SCORE_FONT = ("Courier", 24, "normal") | |
score_a, score_b = 0, 0 | |
window = turtle.Screen() |
NewerOlder