What do you want to save?
Add Code snippet
New code examples
-
Other 2021-08-29 23:29:02
accept and content type
Content-Type header is used in POST , PUT , PATCH to specify the type of body you are sending to the serve and it's required. `Accept Header` can be used to ask the server to return different type of response format For example : `/api/xname` endpo... Add solution -
Other 2021-08-29 23:28:02
How to see your reports in cucumber
There are different type of Cucumber reports. 1. Pretty Report: It only generates a very basic report on IntelliJ/Eclipse console. We can make the console output more readable by using "monochrome = true" under @CucumberOptions. 2. Cucumber ... Add solution -
Javascript 2021-08-29 23:11:01
javascript event listener checkbox
//js var checkbox = document.querySelector("input[name=checkbox]"); checkbox.addEventListener( 'change', function() { if(this.checked) { // Checkbox is checked.. } else { // Checkbox is not checked.. } }); //jquery ... Add solution -
Other 2021-08-29 22:23:01
add jquery
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> // Put this script in the head of your index.html to load jQuery // The Google Hosted Libraries is a stable, reliable, high-speed, // globally... Add solution -
Other 2021-08-29 21:56:02
how to decode jwt token client side
let b64DecodeUnicode = str => decodeURIComponent( Array.prototype.map.call(atob(str), c => '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2) ).join('')) let parseJwt = token => JSON.parse( b64DecodeUnicode( token.... Add solution -
Shell/Bash 2021-08-29 21:32:02
gatsby js install
npm install -g gatsby-cli //Create new project gatsby new [gatsby-project-name] https://github.com/gatsbyjs/gatsby-starter-hello-world cd [gatsby-project-name] //initialize developer server gatsby develop //create production build the project gatsby... Add solution -
Shell/Bash 2021-08-29 21:15:02
how to install gatsby with typescript
# Install this on the current gatsby project npm install gatsby-plugin-typescript & npm install typescript --save-dev # Yarn yarn add gatsby-plugin-typescript & yarn add typescript --dev # gatsby-config.js module.exports = { plugins: [ `gat... Add solution
Best helpers
Ranking is empty