Skip to content

Instantly share code, notes, and snippets.

@roktas
Created October 19, 2022 23:11
Show Gist options
  • Save roktas/6f128d3c0ada82b6b5638c353cc5284b to your computer and use it in GitHub Desktop.
Save roktas/6f128d3c0ada82b6b5638c353cc5284b to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'json'
content = URI("https://fluxometer.com/rainbow/json/files.json").read
content.delete_prefix!("files(")
content.delete_suffix!(")")
data =JSON.parse(content)
puts data.first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment