add copy from gist feature
fix rubocop errors