diff --git a/1.sh b/1.sh new file mode 100644 index 0000000..2d4e100 --- /dev/null +++ b/1.sh @@ -0,0 +1 @@ +# day 3 bootcamp diff --git a/CompTip.txt b/CompTip.txt new file mode 100644 index 0000000..774249a --- /dev/null +++ b/CompTip.txt @@ -0,0 +1 @@ +Always make sure to comment your scripts! diff --git a/TheBestTip.md b/TheBestTip.md new file mode 100644 index 0000000..31d7f63 --- /dev/null +++ b/TheBestTip.md @@ -0,0 +1 @@ +Please add this code to your program diff --git a/WriteCommments.md b/WriteCommments.md new file mode 100644 index 0000000..f91c5cc --- /dev/null +++ b/WriteCommments.md @@ -0,0 +1 @@ +Write descriptive comments when writing code. diff --git a/aliases.txt b/aliases.txt new file mode 100644 index 0000000..9844798 --- /dev/null +++ b/aliases.txt @@ -0,0 +1,7 @@ +The alias command is very useful to create shortcuts to commands. A common one is with the list command. + +alias l='ls -lh' + +The above command will create an alias for "l". Anytime you type l into the terminal it will be as if you typed ls -lh + + diff --git a/comment-code.txt b/comment-code.txt new file mode 100644 index 0000000..dc4a7fe --- /dev/null +++ b/comment-code.txt @@ -0,0 +1 @@ +When you are writing code, be sure to add comments for others and your future self. This way, it will be much easier to understand your code. Also, make sure that your comments are specific and informative. diff --git a/deletingCaution.txt b/deletingCaution.txt new file mode 100644 index 0000000..2c7e412 --- /dev/null +++ b/deletingCaution.txt @@ -0,0 +1,3 @@ +Be careful when you use the -r flag when removing a directory! +It'll remove everything within that directory includin any +subdirectories for good! diff --git a/have-fun.md b/have-fun.md new file mode 100644 index 0000000..d17f1da --- /dev/null +++ b/have-fun.md @@ -0,0 +1 @@ +have fun :) diff --git a/help_pages.md b/help_pages.md new file mode 100644 index 0000000..1755874 --- /dev/null +++ b/help_pages.md @@ -0,0 +1,4 @@ +If you are ever unsure about what certain flags mean or what a tool is capable of doing use the help page. + +Running most commands with: --help OR -h +Will print out a help page for the tool that you can read through to learn about different flags or options. diff --git a/logging-work b/logging-work new file mode 100644 index 0000000..c92f045 --- /dev/null +++ b/logging-work @@ -0,0 +1,3 @@ +Tip! +Create a "working log/script" when you are experimenting with new pipelines or analyses. +This helps you remember what you did. When you finish the analysis, clean it up and put it in its own stand-alone script. diff --git a/loop-creating.md b/loop-creating.md new file mode 100644 index 0000000..2b1049c --- /dev/null +++ b/loop-creating.md @@ -0,0 +1,10 @@ +# Creating Loops in the Shell # + +This starts i on 0, ends on 10, and adds 1 to each itteration to the value of i. The body of the loop prints the value of i for each itteration. + +``` +for ((i=0; i=10; i+=1)) +do + echo ${i} +done +``` diff --git a/make-comments.md b/make-comments.md new file mode 100644 index 0000000..b1a87f9 --- /dev/null +++ b/make-comments.md @@ -0,0 +1,3 @@ +Remember to make comments on all lines of code, and be descriptive! + +Your future self will thank you. diff --git a/set-seed.md b/set-seed.md new file mode 100644 index 0000000..d0007ed --- /dev/null +++ b/set-seed.md @@ -0,0 +1 @@ +Set a seed for reproducible randomness. In R use the function `set.seed()`. diff --git a/tips.txt b/tips.txt new file mode 100644 index 0000000..541a5d2 --- /dev/null +++ b/tips.txt @@ -0,0 +1,2 @@ +Tips for using version control +