Skip to content

Instantly share code, notes, and snippets.

View jdugarte's full-sized avatar

Jesus Dugarte jdugarte

View GitHub Profile
@blocknotes
blocknotes / setup.md
Last active September 14, 2024 14:48
ActiveAdmin Trix editor setup (tested with Rails 6.0.3.3)
  • Setup the Rails project with ActiveAdmin using Webpacker: rails g active_admin:install --use_webpacker
  • Setup Trix editor for ActiveAdmin:
    • Execute: bin/rails action_text:install
    • Add Javascript library to app/javascript/packs/active_admin.js:
require("trix")
require("@rails/actiontext")
  • Add style library to app/javascript/stylesheets/active_admin.scss:
# page 2
=begin
Station>>computePart: aPart
^self multiplyPartTimesRate: aPart
Station>>multiplyPartTimesRate: aPart
^Part
amount: aPart amount * self rate
date: aPart date
=end
@leonardteo
leonardteo / rails_on_windows_10.md
Last active March 14, 2018 23:14
How to get Rails dev environment working on Windows 10
@juanca
juanca / github_load_all_diffs.js
Created March 2, 2017 18:42
Github PR bookmarklet: Load all file diffs
javascript:
document.querySelectorAll('.load-diff-button').forEach(node => node.click())