When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| 65899945 | |
| 66681632 | |
| 66290414 |
| 11161 |
| 63112728 | |
| 63064674 | |
| 63062870 | |
| 63009126 | |
| 62883863 | |
| 63438653 | |
| 63384687 | |
| 62410386 | |
| 62405600 | |
| 62447190 |
| FRGMO23235 | |
| WAGOL83437 | |
| WGREA49550 | |
| WMSON31456 | |
| WNT26482 | |
| MAN227294 | |
| AAMII24875 | |
| THI27851 | |
| MOC153543 | |
| OSC241592 |
| --- | |
| include: | |
| - ".solargraph_definitions.rb" | |
| - "app/**/*.rb" | |
| - "config/**/*.rb" | |
| - "lib/**/*.rb" | |
| exclude: | |
| - test/**/* | |
| - vendor/**/* | |
| - ".bundle/**/*" |
| diff --git a/app/commands/apply_individual_discounts.rb b/app/commands/apply_individual_discounts.rb | |
| index e39a96cd8c..534d134020 100644 | |
| --- a/app/commands/apply_individual_discounts.rb | |
| +++ b/app/commands/apply_individual_discounts.rb | |
| @@ -3,7 +3,7 @@ class ApplyIndividualDiscounts | |
| def perform(event_name, order) | |
| return if event_name != "spree.cart.add" || order.blank? | |
| - order.line_items_with_current_flash_sales.each do |line_item| | |
| + order.line_items_with_current_flash_sales.uniq.each do |line_item| |
| diff --git a/app/services/feature_service.rb b/app/services/feature_service.rb | |
| index 7e25a3392a..128534de99 100644 | |
| --- a/app/services/feature_service.rb | |
| +++ b/app/services/feature_service.rb | |
| @@ -4,7 +4,7 @@ class FeatureService | |
| launchdarkly_sdk_key = Rails.application.config.launchdarkly_sdk_key | |
| if launchdarkly_sdk_key.present? | |
| logger.level = ::Logger::WARN | |
| - config = LaunchDarkly::Config.new(logger: logger) | |
| + config = LaunchDarkly::Config.new(logger: logger, connect_timeout: 20.0) |
| # ------------------------------------------------------------------- | |
| # use nocorrect alias to prevent auto correct from "fixing" these | |
| # ------------------------------------------------------------------- | |
| alias foobar='nocorrect foobar' | |
| alias g8='nocorrect g8' | |
| # ------------------------------------------------------------------- | |
| # Ruby stuff | |
| # ------------------------------------------------------------------- | |
| alias ri='ri -Tf ansi' # Search Ruby documentation |