| { | |
| "$schema": "https://json.schemastore.org/claude-code-settings.json", | |
| "model": "opus", | |
| "hooks": { | |
| "PostToolUse": [ | |
| { | |
| "matcher": "Update|Write", | |
| "hooks": [ | |
| { | |
| "type": "command", |
| require "bundler/inline" | |
| gemfile do | |
| source "https://rubygems.org" | |
| gem "phlex" | |
| end | |
| require "phlex/testing/view_helper" | |
| include Phlex::Testing::ViewHelper |
| <%= form_with(model: team) do |form| %> | |
| <div> | |
| <%= form.label :name %> | |
| <%= form.text_field :name, class: "input" %> | |
| </div> | |
| <div> | |
| <%= f.select :user_id, {}, {placeholder: "Select user"}, {class: "w-full", data: { controller: "select", select_url_value: users_path }} %> | |
| </div> |
| #!/bin/sh | |
| # A little shell script to help you reclaim disk space by doing the | |
| # following things on your Mac OS development machine. | |
| # * Empty all of your local development.log files | |
| # * Empty all of your local test.log files | |
| # * Removes unused Homebrew packages | |
| # Install: | |
| # * Save this to ~/bin/argonista-disk-space-reclaimer.sh | |
| # * Run % chmod +x ~/bin/argonista-disk-space-reclaimer.sh | |
| # Usage: |
| <%= render ArticleComponent.new do %> | |
| <%= render StackComponent.new do %> | |
| <%= render BoxComponent.new(as: :header) do %> | |
| <%= render HeaderComponent.new.with_content(resource.data.title) %> | |
| <%= render TextComponent.new(tone: :secondary) do %> | |
| <%= render LinkComponent.new(href: "/").with_content("Andrew Mason") %> | |
| • <%= pretty_date resource.data.updated_at %> | |
| • <%= reading_time resource.content %> Minute Read | |
| <% end %> | |
| <% end %> |
| import { Controller } from "stimulus"; | |
| import { get } from "@rails/request.js"; | |
| import { PageSnapshot } from "@hotwired/turbo"; | |
| export default class extends Controller { | |
| static values = { hoverTime: Number }; | |
| connect() { | |
| this.element.addEventListener("mouseover", this.prefetch.bind(this)); | |
| this.element.addEventListener("touchstart", this.prefetch.bind(this)); | |
| } |
| <!-- app/views/boards/_board.html.erb --> | |
| <ul class="..." | |
| data-controller="board" | |
| data-board-signed-resource-value="<%= board.to_sgid.to_s %>" | |
| id="<%= dom_id(board) %>"> | |
| <!-- ... --> | |
| </ul> |
For my Vietnamese wife a good karaoke setup is serious business. Problem is, I noticed that some people spend thousands of dollars on unnecessary stuff like gigantic receivers and speakers, only to end up with hiss, clipping, and clunky operation. Smart/consistent home setup should definitely fit under $1000, and that's with speakers and expensive Nvidia Shield box. You could definitely cut it to under $500 and still have a great setup. I did some research and put together a convenient setup for amazing quality at-home karaoke that isn't worth thousands, isn't a chore to operate, and passes Asian quality standards with flying colors.
How to use this setup once it's ready:
- You find any song on your phone's Youtube and cast it to your TV
- You pick up the microphone, start singing, and it all just sounds surprisingly beautiful
This guide assumes that you already have a TV with HDMI ARC or Optical/Coaxial audio output, and that you have WiFi at home.
| import { Controller } from "stimulus"; | |
| export default class extends Controller { | |
| static targets = ["source"]; | |
| copy() { | |
| const range = document.createRange(); | |
| window.getSelection().removeAllRanges(); |