using github for scientific research
play

Using GitHub for scientific research Jon W. Carr Language Evolution - PowerPoint PPT Presentation

Using GitHub for scientific research Jon W. Carr Language Evolution and Computation Research Unit School of Philosophy, Psychology and Language Sciences University of Edinburgh Three good reasons to use GitHub Version control Share and


  1. Using GitHub for scientific research Jon W. Carr Language Evolution and Computation Research Unit School of Philosophy, Psychology and Language Sciences University of Edinburgh

  2. Three good reasons to use GitHub Version control Share and collaborate Publish your work

  3. github pages fork master repository atom .gitignore collaborator markdown public sync SHA hash command line tools commit blame branch merge pull request history issues wiki clone gist git private release

  4. Today’s workshop Background Specifics Demonstration Collaborative project Quiz

  5. GitHub Education Free micro account for students Host 5 private repositories Usually $7 per month

  6. Big picture

  7. Key terms Repository Commit Branch Fork Pull request

  8. Repository

  9. Commit 1 def Hello(name): 
 2 greeting = "Hello " + name 
 3 print greeting

  10. Commit 1 def Hello(name): 
 2 greeting = "Hello " + name 
 3 print greeting 4 5 def Bye(name): 6 valediction = "Bye bye " + name 7 print valediction

  11. Revert a commit def Raise(x, y): 
 def Square(x): 
 def Cube(x): 
 z = x ** y y = Raise(x, 2) y = Raise(x, 3) return z return y return y

  12. Revert a commit def Square(x): 
 y = Raise(x, 2) return y def Raise(x, y): 
 def Square(x): 
 def Cube(x): 
 z = x ** y y = Raise(x, 2) y = Raise(x, 3) return z return y return y

  13. Roll back to a previous commit def Raise(x, y): 
 def Square(x): 
 def Cube(x): 
 z = x ** y y = Raise(x, 2) y = Raise(x, 3) return z return y return y

  14. Roll back to a previous commit def Raise(x, y): 
 def Square(x): 
 z = x ** y y = Raise(x, 2) return z return y

  15. Branch Branch 1 Repo Branch 2 Branch 3

  16. Fork Main public repo GitHub Public forks

  17. Pull request Pull request

  18. Two handy apps GitHub Atom

  19. GitHub

  20. Atom

  21. .gitignore

  22. (GitHub Flavored) Markdown

  23. Other GitHub features Issues: Bug reporting and feature requests Wiki: Document the project Pages: Free webpage for your project Gist: A mini repo for snippets of text

  24. Demo…

  25. Collaborative project Aim: Build a simple Mantel Test module in Python Three teams will each implement part of the code Then we’ll test our code at the end Team 1 Team 2 Team 3 ReadFile() PairwiseDistances() MonteCarlo()

  26. Quiz 1. What’s the name of the GitHub mascot? 2. What’s the difference between a fork and a branch? 3. What’s a pull request? 4. Can you delete a previous commit? 5. What would you use a .gitignore file for? 6. What could you use GitHub Issues for?

  27. Homework (if you’re keen) Merge the functions created by the other two teams into your fork of the repository Test out the final code for yourself!

Recommend


More recommend