Skip to content

Instantly share code, notes, and snippets.

@altherlex
Created May 26, 2022 06:52
Show Gist options
  • Save altherlex/10e3ba842a8bc39adc201a125a8f2690 to your computer and use it in GitHub Desktop.
Save altherlex/10e3ba842a8bc39adc201a125a8f2690 to your computer and use it in GitHub Desktop.
Biggest script in one line only

Bigest script in one line

Show me your biggest code done in one line only.

lib['data'].select{|i| i['cover']['src'].nil? and images.find{|img| img[:q] == i['title']+' '+i['author']}}.each_with_index{|v, i| lib['data'].find{|l| l['book_id'] == v['book_id']}['cover'] = get_it.call(images.find{|img| img[:q] == v['title']+' '+v['author']}[:id]) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment