curl
is a type of nice utilities that is been round seemingly ceaselessly and has infinite use circumstances. As of late I discover myself utilizing curl
to batch obtain recordsdata and check APIs. Generally my testing leads me to utilizing totally different HTTP headers in my requests.
So as to add a header to a curl
request, use the -H
flag:
curl -X 'GET' 'https://nft.api.cx.metamask.io/collections?chainId=1' -H 'settle for: software/json' -H 'Model: 1'
You possibly can add a number of headers with a number of -H
makes use of. Header format is normally [key]: [value]
.
CSS Animations Between Media Queries
CSS animations are proper up there with sliced bread. CSS animations are environment friendly as a result of they are often {hardware} accelerated, they require no JavaScript overhead, and they’re composed of little or no CSS code. Very often we add CSS transforms to components by way of CSS throughout…
Chris Coyier’s Favourite CodePen Demos
David requested me if I would be up for a visitor publish selecting out a few of my favourite Pens from CodePen. A frightening activity! There are such a lot of! I managed to select a couple of although which have blown me away over the previous few months. Should you…
WordPress-Type Remark Controls Utilizing MooTools or jQuery
WordPress has a pleasant little impact on the Admin Dashboard the place it exhibits and hides the remark management hyperlinks whenever you mouseover and mouseout of the document’s container. Here is how one can obtain that impact utilizing MooTools or jQuery. The XHTML Discover that we place the hyperlinks into…
Printing MooTools Accordion Gadgets
Generally we’re introduced with unexpected issues in terms of our JavaScript results. On this case, I am speaking about printing jQuery and MooTools accordions. Every “closed” accordion content material factor has its top set to 0 which implies will probably be hidden when the…