Beyond Code Flashcards

 dash 

  -  

Examples

Can you remember one of the examples?
echo -n "Hello"
ls -lahF ./
git commit -m "wip"
curl -fsS https://example.com/

  hyphen  

  -  

Examples

Can you remember one of the examples?
sudo apt-get install ...
vps-adduser
ssh-pubkey

  dash-dash  

  --  

Examples

Can you remember one of the examples?
git commit --amend
node --version
go build --help

 slash 

  /  

Examples

Can you remember one of the examples?

"always end your paths in a slash"

https://example.com/
Demo/

  open angle  

  <  

Examples

Can you remember one of the examples?
git <command> [<args>]
caddy <command> [<args...>]
<!DOCTYPE html>
   <html>
       <head>
           <meta>
           <title>
       <body>
           <table>

  close angle  

  >  

Examples

Can you remember one of the examples?
        </meta>
        </title>
    </head>
        </table>
    </body>
</html>

  dollar sign  

  $  

Examples

Can you remember one of the examples?

env PATH="$PATH"

echo "$HOME"


  dot slash  

  ./  

Examples

Can you remember one of the examples?

“there’s always a space before dot slash”

npm publish ./ --access public
serviceman add ./server.js

  open square (bracket)  

  [  

Examples

Can you remember one of the examples?
items[i];
COMMAND [FLAGS] [OPTIONS] [--] [PATHS]

  close square (bracket)  

  ]  

Examples

Can you remember one of the examples?
["foo", "bar", "baz"]

  escape (backwards slash)  

  \  

Examples

Can you remember one of the examples?

(points up and left, towards the escape key)

\" \' \\

\n \ \t

  hash (comment)  

  #  

Examples

Can you remember one of the examples?
# TODO write a script

  tilde ($HOME)  

  ~  

Examples

Can you remember one of the examples?
ls ~/Downloads/

 Root 

  /  

Examples

Can you remember one of the examples?
ls /Volumes
ls /mnt
ls /app

  comment  

  //  

Examples

Can you remember one of the examples?
// TODO write some code

  open paren  

  (  

Examples

Can you remember one of the examples?
func echo(args ...string) {
    return args
}


echo("Beyond Code", "Bootcamp")

  close paren  

  )  

Examples

Can you remember one of the examples?

“you’re missing a close paren”

a && (b || c);

6 * (8 - 1);

  open curly (brace)  

  {  

Examples

Can you remember one of the examples?

“mustache”, “handlebars”

{{ .name }}
{
    let mut greeting = "Hello, World!"
}

 pipe 

  |  

Examples

Can you remember one of the examples?
ls | xargs echo


echo "$HOME" | grep 'Users'

  close curly (brace)  

  }  

Examples

Can you remember one of the examples?
{ "name": "bob", "age": "20" }
if (error) {
    return error;
}

  to file  

  >  

Examples

Can you remember one of the examples?
cat - > 2020-Jun.txt

curl https://example.com/ > example.html

  from file  

  <  

Examples

Can you remember one of the examples?
psql < init.sql

 mod 

  %  

Examples

Can you remember one of the examples?
remainder := 56 % 10

0 == i % 100

  hashbang  

  #!  

Examples

Can you remember one of the examples?
#!/bin/bash
#!/usr/bin/env node

  end (with)  

  $  

Examples

Can you remember one of the examples?

vim: “go to the end of the line”

$

  begin (with)  

  ^  

Examples

Can you remember one of the examples?

vim: “go to the beginning of the line”

“find lines that begin with a comment”

/^#.*/gm

  zero or more  

  *  

Examples

Can you remember one of the examples?
/air.*plane/

  glob (file expansion)  

  *  

Examples

Can you remember one of the examples?
prettier --write '*/**.{md,js,json,css,html}'
git add '*.{md,js}'

  block comment  

  /* */  

Examples

Can you remember one of the examples?
/*
    TODO: Write program
        - should take an argument
        - and print to the screen

 */


  • Learning Mode
  • Name Mode
  • Symbol Mode