Help with SQL commands to interact with a MySQL database
- Mac /usr/local/mysql/bin
- Windows /Program Files/MySQL/MySQL version/bin
- Xampp /xampp/mysql/bin
| import { useEffect } from 'react'; | |
| const useScript = (url: string, onLoadCallback?: () => void) => { | |
| useEffect( | |
| () => { | |
| const script = document.createElement('script'); | |
| script.src = url; | |
| script.async = true; | |
| script.defer = true; |
| import { useRef, useEffect, useState, useCallback } from "react"; | |
| const useSize = () => { | |
| let observer = useRef(); | |
| const nullSize = { width: null, height: null }; | |
| const [currentSize, setCurrentSize] = useState(nullSize); | |
| const getSize = (elements) => { |
| # Change to the project directory | |
| cd $FORGE_SITE_PATH | |
| # Turn on maintenance mode | |
| php artisan down || true | |
| # Pull the latest changes from the git repository | |
| # git reset --hard | |
| # git clean -df | |
| git pull origin $FORGE_SITE_BRANCH |
Inertia NON è un framework JS e non è inteso a sostituirne uno.
Inertia è una libreria JavaScript che ci permette di utilizzare Vue, React o Svelte all'interno di un qualsiasi backend, creando un'esperienza da SPA, ma senza le complessità tipiche della SPA.
In altre parole, tu continui ad utilizzare i pattern e il routing del tuo framework di backend preferito, ma poi a frontend ti ritrovi con la potenza di un framework JS moderno.
>Nota: Inertia è cucito attorno a Laravel ma non è legato strettamente a Laravel, ma ha per Laravel (e per Rails) degli adaptors ufficiali che ne rendono facile l'implementazione.
| #Requires AutoHotkey v2.0 | |
| <^>!'::Send "``" ; AltGr + ' => ` | |
| <^>!vkDD::Send "~" ; AltGr + ì => ~ |