-
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:
This file contains 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
In your settings.json workspace config, place: | |
{ | |
"eslint.workingDirectories": ["./server", "./client"] | |
} |
This file contains 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 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) |
This file contains 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
/** | |
* @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 ); |
This file contains 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
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 |
This file contains 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
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"explorer.confirmDelete": false, | |
"editor.formatOnSave": true, | |
"prettier": { "arrowParens": "always" } | |
} |
This file contains 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
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>'; | |
} |
This file contains 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
function woo_remove_wc_account_page_noindex(){ | |
if (!is_user_logged_in()) { | |
remove_action( 'wp_head', 'wc_page_noindex' ); | |
} | |
} | |
add_action( 'init', 'YOURPREFIX_remove_wc_account_page_noindex' ); |
This file contains 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
add_filter( 'default_content', 'my_editor_content' ); | |
function my_editor_content( $content ) { | |
$content = "[vc_row full_width='stretch_row' css='.vc_custom_1546953804123{margin-top: -314px !important;padding-top: 310px !important;padding-bottom: 195px !important;background-image: url(http://homolog.mrjobs.com.br/ocktus/wp-content/uploads/2018/12/2-imoveis-alguel-interna.jpg?id=128) !important;background-position: center !important;background-repeat: no-repeat !important;background-size: cover !important;}'][vc_column][/vc_column][/vc_row][vc_row el_class='post-content' css='.vc_custom_1549045196317{margin-top: -150px !important;background-color: #fbf3f0 !important;}'][vc_column width='2/3'][vc_column_text][sliderImoveis][/vc_column_text][/vc_column][vc_column width='1/3'][vc_raw_html]JTNDcCUzRUxvcmVtJTIwaXBzdW0lMjBkb2xvciUyMHNpdCUyMGFtZXQlMkMlMjBjb25zZWN0ZXR1ciUyMGFkaXBpc2NpbmclMjBlbGl0LiUyMFN1c3BlbmRpc3NlJTIwZGlnbmlzc2ltJTIwbGFjdXMlMjB1dCUyMG1ldHVzJTIwZmluaWJ1cyUyMHByZXRpdW0uJTIwTWF1cmlzJTIwbWF1cmlzJTIwb |
NewerOlder