I'm a web app developer for an insurance company.
- Indiana, USA
-
00:25
(UTC -05:00) - https://avocoaster.com
Pinned Loading
-
log-pretty
log-pretty PublicProvides intuitive methods for outputting ANSI escaped content to the terminal
Ruby
-
-
stimulus-microwave
stimulus-microwave PublicA functional microwave built using Stimulus.js. Does everything except cook food.
JavaScript
-
farkle-game
farkle-game PublicA 1-4 player complete Farkle game built on a frontend Javascript empowered site.
JavaScript
-
Ruby, Pretty generate inline JSON
Ruby, Pretty generate inline JSON 1# Below is a way to add a JSON module method #pretty_inline to receive a Ruby Hash and generate pretty JSON.
2# This is similar to #pretty_generate only instead of adding indentation and newlines, this
3# will produce an inline String.
4#
5# Under the hood, the method uses the JSON#generate method which accepts a 2nd optional argument of options.
-
Ruby - pretty format and copy valid ...
Ruby - pretty format and copy valid JSON or Ruby Hash to clipboard or pasteboard. 1# NB: This method utilizes 'pbcopy' which is only available on MacOS.
2#
3# I often find myself in the IRB or Pry console needing to both format a Ruby Hash and copy it to the clipboard.
4# Here is a covenient method that can accomplish both of those tasks
5#
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.