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
| name: Back | |
| on: [push] | |
| jobs: | |
| tests: | |
| name: Tests d'API | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: |
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\Support\Str; | |
| use MathieuTu\Exporter\Exporter; | |
| abstract class Model extends \Illuminate\Database\Eloquent\Model | |
| { | |
| use HasUuid, Exporter; |
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
| // not working | |
| type SetFunction<T> = (newState: T | ((oldState: T) => T)) => void | |
| export const useState = <T>(initial: T): [T, SetFunction<T>] => { | |
| const state = ref(initial) | |
| const setState: SetFunction<T> = (newState) => { | |
| // @ts-ignore | |
| state.value = typeof newState === 'function' ? newState(state.value) : newState |
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\Console\Commands; | |
| use App\Helpers\RelationsInModelFinder; | |
| use App\Models\Model; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Support\Facades\File; | |
| use Illuminate\Support\Facades\Schema; | |
| use Symfony\Component\Finder\SplFileInfo; |
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 | |
| use App\Models\Client; | |
| use App\Models\Commande; | |
| use App\Models\CommandeLigne; | |
| use App\Models\Utilisateurs\Admin; | |
| use App\Models\Utilisateurs\ADV; | |
| use App\Models\Utilisateurs\Commercial; | |
| use App\Models\Utilisateurs\Contact; |
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
| <?php | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Support\Str; | |
| use Ramsey\Uuid\Uuid; | |
| trait HasUuid | |
| { |
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 [email protected] | |
| -- 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 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", |