Skip to content

scit106/script-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro to Scripting

  1. What is Scripting & Why learn?

    • Files that tell a computer what to do in order
    • Programing
    • Automate common tasks
      • file rename
      • image processing
  2. How do you script?

    • Most programming languages can be used
    • Ruby, Python, Js in Node, PHP, Bash/Shell/Batch, whatever
  3. Introduction to the Terminal

  4. Writing a basic script

    • Using a text editor
    • runme.py
  5. Running files

    • ruby file.rb
    • node file.js
    • python file.py
  6. Running a basic script

    • Renaming a file (renamer.rb)
    • Rename one file (then undo that)
  7. Intro to Variables

    • (comment out old stuff)
    • Storing information
    • Rename with a variable (and then undo)
  8. Intro to arrays

    • Iterating
    • Accessing Indexes
    • Difference from Hash/Dictionary/Object
    • Rename with arguments passed from the command line
  9. Extensibility

    • Node modules, Ruby Gems
  10. Getting Help

  11. Conclusion

    • Scheduling scripts
    • Other uses of scripts
      • opening, reading, modifying files
      • scraping web pages
      • calling other scripts

About

Scripting demo for the interns

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors