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
defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web_namespace, schema.alias) %>Controller do | |
use <%= inspect context.web_module %>, :controller | |
alias <%= inspect schema.module %> | |
alias <%= inspect context.base_module %>.Repo | |
def index(conn, _params) do | |
<%= schema.plural %> = Repo.all(<%= inspect schema.alias %>) | |
render(conn, :index, <%= schema.collection %>: <%= schema.plural %>) | |
end |
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
@props(['align' => 'right', 'width' => '48', 'contentClasses' => 'py-1 bg-white']) | |
@php | |
$alignmentClasses = match ($align) { | |
'left' => 'ltr:origin-top-left rtl:origin-top-right start-0', | |
'top' => 'origin-top', | |
default => 'ltr:origin-top-right rtl:origin-top-left end-0', | |
}; | |
$width = match ($width) { |
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
language_server.diagnostic_ignore_codes: | |
- worse.docblock_missing_return_type |
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
products = retry_on_failure(times: 2) do | |
account.client.products.all | |
rescue => e | |
account.refresh_token | |
raise e | |
end | |
private | |
def retry_on_failure(times: , &block) |
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
import os | |
import re | |
import time | |
import win32clipboard | |
import hashlib | |
import keyboard | |
# Define the keywords to monitor | |
TARGET_WORDS = ["roblox", "onepiece", "gta", "fortnite"] |
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
echo '{"live-restore": true}' | sudo tee /etc/docker/daemon.json > /dev/null |
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
web: php artisan octane:start --server=frankenphp --host=0.0.0.0 --port=80 --admin-port=2019 | |
release: php artisan migrate --force | |
queue: php artisan queue:work |
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
-- Set Write-Ahead Logging for better concurrency | |
PRAGMA journal_mode = WAL; | |
-- Enable incremental vacuuming to reclaim free space after deletions | |
PRAGMA auto_vacuum = INCREMENTAL; | |
-- Optimize page size for your workload (default 4 KB is generally sufficient) | |
PRAGMA page_size = 4096; | |
-- Set automatic WAL checkpointing after 1000 pages (tune this based on workload) |
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
version: '3.3' | |
services: | |
traefik: | |
image: traefik:latest # Use the latest Traefik image | |
ports: | |
- target: 80 | |
published: 80 | |
mode: host |
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
import sys | |
import time | |
import numpy as np | |
import resampy | |
import soundfile as sf | |
import tensorflow as tf | |
import params as yamnet_params | |
import yamnet as yamnet_model |