This file contains hidden or 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
| --- | |
| argument-hint: [path to source image] | |
| description: Generate favicons from a source image | |
| --- | |
| Generate a complete set of favicons from the source image at `$1` and update the project's HTML with the appropriate link tags. | |
| ## Prerequisites | |
| First, verify ImageMagick v7+ is installed by running: |
This file contains hidden or 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
| # frozen_string_literal: true | |
| # ABOUTME: Generates payroll entries for all active employees in a payroll period | |
| # ABOUTME: Orchestrates data preloading and PayrollEntryBuilder calls | |
| class PayrollGeneratorService | |
| Result = Struct.new(:success?, :generated_count, :failed, :total_count, :blocked_by_incomplete, keyword_init: true) | |
| def initialize(payroll_period) | |
| @payroll_period = payroll_period | |
| @account = payroll_period.account |
This file contains hidden or 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
| --- | |
| description: Simplify and refine Ruby/Rails code for clarity and maintainability | |
| allowed-tools: Bash(git:*), Read, Glob, Grep, Edit | |
| model: opus | |
| --- | |
| ## Context | |
| - Current branch: !`git branch --show-current` | |
| - Recent changes: !`git diff --name-only HEAD~5 2>/dev/null || git diff --name-only` |
This file contains hidden or 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
| #!/bin/bash | |
| # summarize-book - Create a 15-minute book summary using Claude | |
| # Usage: summarize-book path/to/book.pdf | |
| set -e | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' |
This file contains hidden or 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
| # CLI | |
| sudo apt update | |
| sudp apt install \ | |
| git curl docker.io \ | |
| build-essential pkg-config autoconf bison rustc cargo clang \ | |
| libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
| libvips imagemagick libmagickwand-dev libsqlite3-0 \ | |
| redis-server mysql-server sqlite3 libmysqlclient-dev apache2-utils \ | |
| rbenv |
This file contains hidden or 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
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| } |
This file contains hidden or 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
| ~/Development/radiopaedia docker-development | |
| ❯ bin/setup | |
| Login Succeeded | |
| == Checking/Installing dependencies == | |
| The Gemfile's dependencies are satisfied | |
| Waiting for database to become ready | |
| [+] Running 4/0 | |
| ✔ Network radiopaedia_default Created 0.0s | |
| ✔ Container radiopaedia-redis-1 Created 0.0s | |
| ✔ Container radiopaedia-s3-1 Created 0.0s |
This file contains hidden or 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
| $ brew install [email protected] | |
| $ bundle config build.libv8 --with-system-v8 | |
| $ bundle config build.therubyracer --with-v8-dir=$(brew --prefix [email protected]) | |
| $ bundle install |
This file contains hidden or 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
| ❯ bin/rails s | |
| => Booting Puma | |
| => Rails 6.0.2.1 application starting in development | |
| => Run `rails server --help` for more startup options | |
| Puma starting in single mode... | |
| * Version 4.3.1 (ruby 2.6.5-p114), codename: Mysterious Traveller | |
| * Min threads: 5, max threads: 5 | |
| * Environment: development | |
| * Listening on tcp://127.0.0.1:3000 | |
| * Listening on tcp://[::1]:3000 |
This file contains hidden or 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
| Add this on in settings.json | |
| ``` | |
| "editor.parameterHints": false, | |
| ``` |
NewerOlder