$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
{ | |
"name": "evil_chat", | |
"private": true, | |
"dependencies": { | |
"@rails/webpacker": "^3.2.0", | |
"coffeescript": "1.12.7", | |
"normalize.css": "^7.0.0" | |
}, | |
"scripts": { | |
"lint-staged": "$(yarn bin)/lint-staged" |
$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
code-spell-checker
VS Code extension.ext install code-spell-checker
to the command promnt and press Enter key.# frozen_string_literal: true | |
class Decider | |
def self.undecided | |
loop do | |
break if decision? | |
end | |
end | |
def self.decision? | |
# code yielding true or false |
# 1) Copy this template file into root application | |
# 2) Run: bundle install --no-deployment | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
PLATFORMS | |
ruby |
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :development
Then you'll want to rebuild your Docker container to install the gems
#!/usr/bin/env ruby | |
# Extracted from traceroute gem + checking the presence of views as well | |
require_relative './config/environment.rb' | |
class Traceroute | |
def initialize(app) | |
@app = app | |
end |
/** | |
* Standard Time to Military time | |
* | |
* @param {number} t Time to be converted | |
* @param {string} moridiem AM/PM | |
* @return {int} | |
*/ | |
export default function stm (t, m) { | |
t = parseInt(t, 10); |