Skip to content

Instantly share code, notes, and snippets.

@oncomouse
Created January 27, 2021 23:22
Show Gist options
  • Save oncomouse/528cf8e10765337f8671b76e2d17c12b to your computer and use it in GitHub Desktop.
Save oncomouse/528cf8e10765337f8671b76e2d17c12b to your computer and use it in GitHub Desktop.
Signup Maker
require 'csv'
File.open('./spr2021-signup.md', 'w') do |fp|
fp.puts '# ENGL 604: Spring 2021 Presentations'
CSV.foreach('./spr2021.csv', headers: true) do |row|
fp.puts "\n## #{row.field('FIRST NAME')} #{row.field('LAST NAME')}\n\n"
fp.puts "### Dates\n\n1. \n1. \n1. \n\n"
fp.puts "### Topics\n\n* \n* \n"
end
end
@oncomouse
Copy link
Author

Output will be something like:

# ENGL 604: Spring 2021 Presentations

## Student Person

### Dates

1. 
1. 
1. 

### Topics

* 
* 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment