Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jdblischak/computing-tips
Browse files Browse the repository at this point in the history
…into master
  • Loading branch information
x-zang committed Aug 14, 2020
2 parents 3bed956 + 3e62abf commit ac33633
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions 1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# day 3 bootcamp
1 change: 1 addition & 0 deletions CompTip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Always make sure to comment your scripts!
1 change: 1 addition & 0 deletions TheBestTip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please add this code to your program
1 change: 1 addition & 0 deletions WriteCommments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Write descriptive comments when writing code.
7 changes: 7 additions & 0 deletions aliases.txt
Original file line number Diff line number Diff line change
@@ -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


1 change: 1 addition & 0 deletions comment-code.txt
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions deletingCaution.txt
Original file line number Diff line number Diff line change
@@ -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!
1 change: 1 addition & 0 deletions have-fun.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
have fun :)
4 changes: 4 additions & 0 deletions help_pages.md
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions jmy5455.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
file created by jmy5455
3 changes: 3 additions & 0 deletions logging-work
Original file line number Diff line number Diff line change
@@ -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.
10 changes: 10 additions & 0 deletions loop-creating.md
Original file line number Diff line number Diff line change
@@ -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
```
3 changes: 3 additions & 0 deletions make-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Remember to make comments on all lines of code, and be descriptive!

Your future self will thank you.
1 change: 1 addition & 0 deletions set-seed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set a seed for reproducible randomness. In R use the function `set.seed()`.
2 changes: 2 additions & 0 deletions tips.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Tips for using version control

0 comments on commit ac33633

Please sign in to comment.