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:
# 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/') |
I hereby claim:
To claim this, I am signing this object:
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; |
javascript: | |
document.querySelectorAll('.load-diff-button').forEach(node => node.click()) |
require 'set' | |
Set.new("pair".chars) + Set.new("juan".chars) - Set.new("carlos".chars) | |
# => #<Set: {"p", "i", "j", "u", "n"}> |
javascript: | |
((n = document.getElementsByClassName('new-discussion-timeline')[0]) && (n.style['max-width'] = '90%') && false); |
javascript:document.querySelectorAll('input[name="viewed"][checked]').forEach(node => node.click()) |