- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or foldersinany application - Add a
Run Shell Scriptaction- your default shell should already be selected, otherwise use
/bin/zshfor macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
| // ==UserScript== | |
| // @name Fix PE Cidadão Agendamento Payload (XHR + Fetch) | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.1 | |
| // @description Fixes invalid date format in requests to PE Cidadão API | |
| // @author cesar.dev.br | |
| // @match https://pecidadao.pe.gov.br/* | |
| // @grant none | |
| // ==/UserScript== |
-
docker container run -it --name CONTAINERNAME CONTAINERMIMAGE bash(ou sh) => it will run directly the bash of a container
-
docker container ls => it will show running containers
-
docker container ls -a => it will show all containers(running or not)
-
docker container run -p PORTA:PORTA -d(detach) --name NOME -e(env) random_env=true IMAGEM
-
docker container stats => will show stats about how much ram an image is using
React 16.4 will introduce a new Profiler component (initially exported as React.unstable_Profiler) for collecting render timing information in order to measure the "cost" of rendering for both sync and async modes.
Profiler timing metrics are significantly faster than those built around the User Timing API, and as such we plan to provide a production+profiling bundle in the future. (The initial release will only log timing information in DEV mode, although the component will still render its children- without timings- in production mode.)
Profiler can be declared anywhere within a React tree to measure the cost of rendering that portion of the tree. For example, a Navigation component and its descendants:
| In your settings.json workspace config, place: | |
| { | |
| "eslint.workingDirectories": ["./server", "./client"] | |
| } |
| const checkIfComponentIsOutViewport = () => { | |
| console.log('executed'); | |
| if (componentRef.current) { | |
| const componentCurrentPosition = componentRef.current.getBoundingClientRect(); | |
| if (componentCurrentPosition.top < 0) { | |
| console.log('top is out'); | |
| } | |
| if ( | |
| componentCurrentPosition.bottom > | |
| (window.innerHeight || document.documentElement.clientHeight) |
| /** | |
| * @snippet Display Discount Percentage @ Loop Pages - WooCommerce | |
| * @how-to Watch tutorial @ https://businessbloomer.com/?p=19055 | |
| * @sourcecode https://businessbloomer.com/?p=21997 | |
| * @author Rodolfo Melogli | |
| * @compatible WooCommerce 3.5.4 | |
| * @donate $9 https://businessbloomer.com/bloomer-armada/ | |
| */ | |
| add_action( 'woocommerce_before_shop_loop_item_title', 'bbloomer_show_sale_percentage_loop', 25 ); |
| Tema: Dark+(default Dark) | |
| 1. Browser Preview por Kenneth Auchenberg | |
| 2. ES7 React/Redux | |
| 3. ESLint | |
| 5. Prettier | |
| 6. VSCode Google Translate por funkyremi | |
| ---------------- | |
| nvm < para versões do nodejs e npm |
| { | |
| "workbench.startupEditor": "newUntitledFile", | |
| "explorer.confirmDelete": false, | |
| "editor.formatOnSave": true, | |
| "prettier": { "arrowParens": "always" } | |
| } |
| add_action('admin_head', 'my_custom_fonts'); | |
| function my_custom_fonts() { | |
| echo '<style> | |
| body, td, textarea, input, select { | |
| font-family: "Lucida Grande"; | |
| font-size: 12px; | |
| } | |
| </style>'; | |
| } |