-
Initialize your project folder:
git init
-
Create your project files with a ruby image:
docker run -it -v .:/rails/<app_name> ruby:latest /bin/bash cd /rails/<app_name> gem install rails rails new .
exit
javascript:document.querySelectorAll('input[name="viewed"][checked]').forEach(node => node.click()) |
javascript: | |
((n = document.getElementsByClassName('new-discussion-timeline')[0]) && (n.style['max-width'] = '90%') && false); |
require 'set' | |
Set.new("pair".chars) + Set.new("juan".chars) - Set.new("carlos".chars) | |
# => #<Set: {"p", "i", "j", "u", "n"}> |
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()) |
javascript: | |
document.querySelectorAll('.file').forEach(function (fileDiff) { | |
var div, fa; | |
div = document.createElement('div'); | |
div.className = 'btn btn-sm'; | |
div.textContent = 'TOGGLE'; | |
div.addEventListener('click', function (event) { | |
const fileActions = event.target.parentElement; | |
const fileHeader = fileActions.parentElement; |
I hereby claim:
To claim this, I am signing this object:
# Script to go through all files in a specified directory (defaults to javascirpts) | |
# and replace all relative `require`, `require_tree` and `require_directory` paths | |
# as absolute paths given `app/assets/javascripts` as root | |
# | |
# This is useful for using sprockets-loader (or webpack loaders in general because there is no access | |
# to path related information) | |
require 'Pathname' | |
JAVASCRIPT_ROOT = Pathname.new('app/assets/javascripts/') |