-
Initialize your project folder:
git init
-
Create your project files with a ruby image:
docker run -it -v .:/rails/<app_name> -w /rails/<app_name> ruby:latest /bin/bash gem install rails rails new . exit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:document.querySelectorAll('input[name="viewed"][checked]').forEach(node => node.click()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
((n = document.getElementsByClassName('new-discussion-timeline')[0]) && (n.style['max-width'] = '90%') && false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'set' | |
Set.new("pair".chars) + Set.new("juan".chars) - Set.new("carlos".chars) | |
# => #<Set: {"p", "i", "j", "u", "n"}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:
- I am juanca on github.
- I am juanca (https://keybase.io/juanca) on keybase.
- I have a public key ASCDY5TXy743cj7wb0t-iit3xHJSkpN7HZ5lImMjBpTRPQo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/') |