Skip to content

Instantly share code, notes, and snippets.

@uiur
Created December 11, 2015 09:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save uiur/f2249394ca10b534d0b1 to your computer and use it in GitHub Desktop.
[[k, v] ...] -> tsv and copy
`echo "#{CSV.generate(col_sep: "\t") {|r| a.to_a[1..-1].each{|ar| r << ar} }}" | pbcopy`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment