Migrate, e.g. organisation.logo (Carrierwave "LogoUploader") to organisation.logo2 (ActiveStorage)
require 'migrate_attachment'
migrate_attachment!(
klass: Organisation,
attachment_attribute: :logo,
carrierwave_uploader: LogoUploader, | Proprietary Broadcom drivers are packaged and available in the rpmfusion repo. | |
| Verify that your card is a Broadcom using: `lspci -vnn -d 14e4:` | |
| **Sample output:** | |
| 02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03) | |
| ## Install | |
| Install the [rpmfusion](http://rpmfusion.org/) repo, note only "nonfree" is required, as the Broadcom Driver is proprietry: http://rpmfusion.org/ |
| require "bigdecimal" | |
| # List of our individual pricing rules | |
| TAX = ->(val) { val + val*0.05 } | |
| FEE = ->(val) { val + 1 } | |
| PREMIUM = ->(val) { val + 10 } | |
| DISCOUNT = ->(val) { val * 0.90 } | |
| ROUND_TO_CENT = ->(val) { val.round(2) } | |
| # One presenter | |
| PRESENT = ->(val) { val.to_f } |
| .tool-versions |
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'benchmark-ips' | |
| gem 'red-arrow' | |
| end | |
| require 'arrow' |
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| You are an expert software architect and project analysis assistant. Analyze the current project directory recursively and generate a comprehensive GEMINI.md file. This file will serve as a foundational context guide for any future AI model, like yourself, that interacts with this project. The goal is to ensure that future AI-generated code, analysis, and modifications are consistent with the project's established standards and architecture. | |
| + Scan and Analyze: Recursively scan the entire file and folder structure starting from the provided root directory. | |
| + Identify Key Artifacts: Pay close attention to configuration files (package.json, requirements.txt, pom.xml, Dockerfile, .eslintrc, prettierrc, etc.), READMEs, folder hierarchy, documentation files, and source code files. | |
| + Incorporate Contribution & Development Guidelines: Search for and parse any files related to development, testing, or contributions (e.g., CONTRIBUTING.md, DEVELOPMENT.md, TESTING.md). The instructions within these guides are critical |