This setup ensures Lang Switcher is always running on macOS.
If the app crashes or is accidentally closed, it will automatically restart.
Unlike open -a, this method avoids stealing focus every time Lang Switcher launches.
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 { useState, useEffect } from "react"; | |
| const useUserData = (userId) => { | |
| const [user, setUser] = useState(null); | |
| useEffect(() => { | |
| const fetchUser = async () => { | |
| const response = await fetch(`https://api.example.com/users/${userId}`); | |
| const data = await response.json(); | |
| setUser(data); |
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
| for (let i = 1; i <= 30; i++) { | |
| const fizz = !(i % 3); | |
| const buzz = !(i % 5); | |
| if (fizz && buzz) console.log("FizzBuzz"); | |
| else if (fizz) console.log("Fizz"); | |
| else if (buzz) console.log("Buzz"); | |
| else console.log(i); | |
| } |
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
| { | |
| "schemaVersion": 1, | |
| "label": "Codewars", | |
| "labelColor": "#B1361E", | |
| "message": "honor", | |
| "color": "#B1361E", | |
| "namedLogo": "codewars", | |
| "logoColor": "white", | |
| "style": "for-the-badge" | |
| } |
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
Show hidden characters
| { | |
| "$schema": "https://biomejs.dev/schemas/2.2.0/schema.json", | |
| "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, | |
| "files": { "ignoreUnknown": false }, | |
| "formatter": { | |
| "enabled": true, | |
| "formatWithErrors": false, | |
| "indentStyle": "space", | |
| "indentWidth": 2, | |
| "lineEnding": "lf", |
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
| - Answer in English | |
| - Do not give high-level responses; your task is to provide concrete, project-applicable solutions | |
| - Do not give detailed explanations, but describe the purpose of each change | |
| - Before making changes, outline an implementation plan in bullet points, then proceed to implementation | |
| - Follow linters when writing code | |
| #github.com/QuantGeekDev/docker-mcp |
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
| #!/usr/bin/env bash | |
| # Fetch Git configuration values | |
| REMOTE_URL=$(git config --get remote.origin.url) | |
| USER_EMAIL=$(git config user.email) | |
| echo "🔍 Git Hook Running..." | |
| echo "➡ Remote URL: $REMOTE_URL" | |
| echo "➡ User email: $USER_EMAIL" |
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
| * * * * * cd /var/www/html2/laravel && sleep 5 && ./vendor/bin/sail php artisan queue:work --sleep=3 --tries=2 --max-time=3600 --stop-when-empty >> /var/www/html/laravel/storage/logs/crontab.log 2>&1 |
NewerOlder