Tested on macOS 27.2.
Apps stay in the Dock after you quit them (⌘Q), even though they are not running and you never chose "Keep in Dock".
| <?php | |
| require_once __DIR__ . '/vendor/autoload.php'; | |
| use Amp\Mysql\MysqlConfig; | |
| use Amp\Mysql\MysqlConnectionPool; | |
| $config = MysqlConfig::fromString( | |
| "host=localhost user=myuser password=mysecret db=mydatabase" | |
| ); |
| import { useEffect, useRef } from 'react'; | |
| const defaultInterval = 30e3; | |
| export function usePolling(callback: () => Promise<void>, dependencies: any[] = [], interval: number = defaultInterval) { | |
| const savedCallback = useRef<() => Promise<void>>(); | |
| const intervalId = useRef<NodeJS.Timeout | null>(null); | |
| // Store the latest callback in a ref to avoid recreating the effect on every render | |
| useEffect(() => { |
| { | |
| "main": "./cjs/index.js", | |
| "module": "./esm/index.js", | |
| "typings": "./esm/index.d.ts", | |
| "esnext": "./esm/index.js", | |
| "scripts": { | |
| "clean": "yarn shx rm -rf dist output", | |
| "test": "yarn test:build && yarn test:run", | |
| "test:build": "tsc --build tsconfig.test.json", | |
| "test:run": "mocha -r tsconfig-paths/register --timeout 200000 output/tests/**/*.spec.js", |
| { | |
| "scripts": { | |
| "build": "npm run build:es2015 && npm run build:esm && npm run build:cjs && npm run build:umd && npm run build:umd:min", | |
| "build:es2015": "tsc --module es2015 --target es2015 --outDir dist/es2015", | |
| "build:esm": "tsc --module es2015 --target es5 --outDir dist/esm", | |
| "build:cjs": "tsc --module commonjs --target es5 --outDir dist/cjs", | |
| "build:umd": "rollup dist/esm/index.js --format umd --name YourLibrary --sourceMap --output dist/umd/yourlibrary.js", | |
| "build:umd:min": "cd dist/umd && uglifyjs --compress --mangle --source-map --screw-ie8 --comments -o yourlibrary.min.js -- yourlibrary.js && gzip yourlibrary.min.js -c > yourlibrary.min.js.gz", | |
| } | |
| } |
Livro on-line, ou documentação, da Microsoft sobre o desenvolvimento de micro-serviços com AspNetCore para Containers
| ``` | |
| string ObfuscarEmail(string input) | |
| { | |
| int arroba = 0; | |
| int firstDot = 0; | |
| int secondDot = 0; | |
| string firstPart = ""; | |
| string secondPart = ""; | |
| string thirdPart = ""; |
| ^!Left::Send {Media_Prev} | |
| ^!F12::Send {Media_Play_Pause} | |
| ^!Right::Send {Media_Next} |