$ docker run --rm -it -v ${PWD}:/usr/src -w /usr/src ruby:2.7 sh -c 'gem install rails:"~> 6.0.3" && rails new --database=postgresql <app_name>'cdinto project directory
| # UPDATE: Ruby 2.0.0 https://docs.ruby-lang.org/en/2.0.0/Kernel.html#method-i-__dir__ | |
| # $ ruby -v | |
| # ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin18] | |
| # $ pwd | |
| # /Users/dev/Documents/Github/Gists/awesome/ | |
| # $ echo "puts __dir__" > how-to-get-the-directory-of-the-current-file-using-ruby-2-0-0.rb | |
| # $ cat how-to-get-the-directory-of-the-current-file-using-ruby-2-0-0.rb | |
| # puts __dir__ | |
| # $ ruby how-to-get-the-directory-of-the-current-file-using-ruby-2-0-0.rb |
| ## | |
| ## A stegosaur with a top hat? | |
| ## | |
| $the_cow = <<EOC; | |
| $thoughts . . | |
| $thoughts / `. .' " | |
| $thoughts .---. < > < > .---. | |
| $thoughts | \\ \\ - ~ ~ - / / | | |
| _____ ..-~ ~-..-~ | |
| |CRUFT| \\~~~\\.' `./~~~/ |
| (defun de-ansify () | |
| "apply ansi color codes in currently selected region" | |
| (interactive) | |
| (ansi-color-apply-on-region | |
| (region-beginning) | |
| (region-end))) |
Stable branch, I can see you in the stable branch
See you again, I see you again
In my dreams, in my dreams, in my dreams, in my dreamsMorning light, I remember the morning li-i-i-i-ight
Outside my door (outside my door), I'll see you no more (see you no more)
In my dreams, in my dreams, in my dreams, in my dreams
>