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
| <?php | |
| declare(strict_types=1); | |
| namespace App\Services; | |
| use Illuminate\Contracts\Support\Responsable; | |
| use Illuminate\Http\Response; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Support\Facades\Http; |
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
| # scripts/00-laravel-deploy.sh | |
| php artisan route:cache | |
| php artisan view:cache | |
| php artisan config:cache | |
| php artisan migrate --force | |
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
| # syntax=docker/dockerfile:1.4 | |
| FROM node:21-alpine AS front | |
| WORKDIR /usr/src/app | |
| COPY --link package.json yarn.lock .yarnrc.yml ./ | |
| COPY --link .yarn .yarn | |
| RUN yarn install | |
| COPY --link tailwind.config.ts postcss.config.cjs vite.config.ts tsconfig.json tsconfig.node.json ./ | |
| COPY --link resources resources | |
| RUN yarn build |
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
| const MODULE = "common/types/react"; | |
| module.exports = { | |
| meta: { | |
| type: "problem", | |
| docs: { | |
| url: | |
| "https://changelog.com/posts/the-react-reactnode-type-is-a-black-hole", | |
| description: `Enforces never using React.ReactNode as the typing is wrong.`, | |
| category: "react", |
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
| export interface PackageJSON extends Object { | |
| name: string | |
| version?: string | |
| description?: string | |
| keywords?: string[] | |
| homepage?: string | |
| bugs?: string | Bugs | |
| license?: string | |
| author?: string | Author | |
| contributors?: string[] | Author[] |
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
| module.exports= { | |
| defaultBrowser: "Browserosaurus", | |
| handlers: [ | |
| { | |
| match: "meet.google.com/*", | |
| browser: { | |
| name: "Arc", | |
| }, | |
| }, | |
| { |
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
| -- This is v0.7 of the custom script for AlfredApp for iTerm 3.1.1+ | |
| -- created by WangJia hmfight@qq.com | |
| -- github: https://github.com/hmfight | |
| on alfred_script(q) | |
| if application "iTerm2" is running or application "iTerm" is running then | |
| run script " | |
| on run {q} | |
| tell application \":Applications:iTerm.app\" | |
| activate |
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
| const reactiveMap = new WeakMap() | |
| const targetMap = new WeakMap() | |
| let activeEffect | |
| const track = (target, key) => { | |
| if (!activeEffect) return | |
| let depsMap = targetMap.get(target) |
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
| <!doctype html> | |
| <html lang="fr"> | |
| <head> | |
| <title>jQuery example</title> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
| <!-- Bootstrap CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css"> |
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
| <?php | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Support\Str; | |
| use Ramsey\Uuid\Uuid; | |
| trait HasUuid | |
| { |
NewerOlder