Skip to content

Instantly share code, notes, and snippets.

@rivanenko
Created June 6, 2012 13:49
Show Gist options
  • Save rivanenko/2881967 to your computer and use it in GitHub Desktop.
Save rivanenko/2881967 to your computer and use it in GitHub Desktop.
get specializations from xlsx file
1. save .xlsx file as .csv file
2. csv = CSV.read('/home/arsan/Downloads/CSM_SPecializationTypesMay2012.csv')
3. csv.delete_at[0]
4. csv.map{|c| "'#{c[1].strip}'"}.join(", ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment