What I call it | Symbol | What a grown-up might call it |
---|---|---|
Banana | ( or ) |
Parenthesis |
Football | () |
Open/closed parentheses |
Mustache | { or } |
Curly Brace |
Goatee | {} |
Open/closed curly braces |
Staple | [ or ] |
Square bracket |
Box | [] |
Open/closed square brackets |
Alligator | < or > |
Angle bracket |
Alligators kissing | <> |
Open/closed angle brackets OR fragment |
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 main() { | |
install_packages | |
add_setup | |
add_configuration | |
configure_compilation | |
add_test_script | |
} |
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 | |
MESSAGE=$1 | |
pushd () { | |
command pushd "$@" > /dev/null | |
} | |
popd () { | |
command popd "$@" > /dev/null |
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 | |
# | |
# Written by Corey Haines | |
# Scriptified by Gary Bernhardt: https://github.com/garybernhardt/dotfiles/blob/master/bin/git-churn | |
# | |
# Put this anywhere on your $PATH (~/bin is recommended). Then git will see it | |
# and you'll be able to do `git churn`. | |
# | |
# Show churn for whole repo: | |
# $ git churn |
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
/usr/local/bin/fswatch -or -e ".git" -0 . | xargs -0 -n 1 -I {} /bin/zsh -c $1 |
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
import org.junit.jupiter.api.Assertions.assertNotNull | |
inline fun <reified T : Any> assertIsHiltViewModel() { | |
assertNotNull(Class.forName("${T::class.qualifiedName}_HiltModules")) | |
} |
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
class Verse: | |
def create(bottles): | |
return { | |
0: UltimateVerse(), | |
1: PenultimateVerse() | |
}.get(bottles, Verse(bottles)) | |
def __init__(self, bottles): | |
self.bottles = bottles |
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
def number(bottles): | |
return str(bottles) if 0 < bottles else "No" | |
def bottlesOfBeer(bottles): | |
s = "" if bottles == 1 else "s" | |
return f"{number(bottles)} bottle{s} of beer" | |
def passOne(bottles): |
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
param( | |
[String[]] $Files, | |
[String] $Run | |
) | |
$processes = @() | |
foreach ($f in $Files) { | |
$processes += Start-Process -FilePath $Run -ArgumentList $f -PassThru | |
} |
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
public class Encrypted { | |
public string Value { get; set; } | |
public string Salt { get; set; } | |
} |
NewerOlder