Skip to content

Instantly share code, notes, and snippets.

View creating_users_and_save_passwords_in_file.rb
require 'csv'
require 'net/http'
require 'json/ext'
csv_string = "Shen,Lui,sliu+cs@stelladot.com,,Yes,No,No
Shen,Lui,sliu@stelladot.com,,No,No,Yes"
out_file = File.open("users_data.txt", 'w')
View gist:197c8dc3f5533b3e2861
require 'csv'
require 'net/http'
require 'json/ext'
csv_string = "Shen,Lui,sliu+cs@stelladot.com,,Yes,No,No
Shen,Lui,sliu@stelladot.com,,No,No,Yes"
out_file = File.open("users_data.txt", 'w')