What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-19 20:45:06
check git settings terminal
-- set the default branch to main git config --global init.defaultBranch main -- check the git settings on terminal $ git config --list user.name=John Doe [email protected] color.status=auto color.branch=auto color.interactive=auto color.d... Add solution -
PHP 2022-02-19 12:15:01
How to disable Gutenberg / block editor for certain post types
add_filter( 'use_block_editor_for_post_type', 'prefix_disable_gutenberg', 10, 2 ); function prefix_disable_gutenberg( $current_status, $post_type ) { // Use your post type key instead of 'page or post' if ( in_array( $post_type, array( 'page', 'post... Add solution -
Other 2022-02-19 08:05:33
negative testing in api
How I do negative testing in api, - I send invalid request parameters - or invalid headers - or invalid request json body and verify that response status code is not 200 - and response body contains error message (for example there are... Add solution -
Html 2022-02-18 23:25:07
bootstrap loader
<div class="spinner-border text-primary" role="status"> <span class="sr-only">Loading...</span> </div> <div class="spinner-border text-secondary" role="status"> <span c... Add solution -
Javascript 2022-02-18 22:10:05
node js request
const request = require('request'); request('http://www.google.com', function (error, response, body) { console.error('error:', error); // Print the error if one occurred console.log('statusCode:', response && response.statusCode); // Print th... Add solution -
Other 2022-02-18 09:45:01
laravelbdsms, laravel send sms to bd, send sms to Bangladesh
use Xenon\LaravelBDSms\Provider\DianaHost; use Xenon\LaravelBDSms\Sender; $sender = Sender::getInstance(); $sender->setProvider(DianaHost::class); //this is demo for Dianahost $sender->setMobile('017XXYYZZAA'); $sender->setMessage('helloooooooo... Add solution