Hi guys 😁! Long time no new articles!
Today, I am going to show you how to compose React providers with TypeScript.
| const plugin = require("tailwindcss/plugin"); | |
| module.exports = { | |
| mode: "jit", | |
| purge: { | |
| content: ["./src/**/*.{js,ts,jsx,tsx,mdx,vue}"], | |
| }, | |
| theme: { extend: {} }, | |
| variants: {}, | |
| plugins: [ |
Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.
<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
| /* Customize website's scrollbar like Mac OS | |
| Not supports in Firefox and IE */ | |
| /* total width */ | |
| body::-webkit-scrollbar { | |
| background-color: #fff; | |
| width: 16px; | |
| } | |
| /* background of the scrollbar except button or resizer */ |
| require('crypto').randomBytes(48, function(err, buffer) { var token = buffer.toString('hex'); console.log(token); }); |
autocomplete="off" onto <form> element;<input> with autocomplete="false" as a first children element of the form.<form autocomplete="off" method="post" action="">
<input autocomplete="false" name="hidden" type="text" style="display:none;">
...npm install -g npm
# Downgrade to a specific version
npm install -g npm@6
| var mention_id = 620996; | |
| db.mentionStats.aggregate([ | |
| { $match: {'mention_id': mention_id}}, | |
| { $group: {'_id': { | |
| 'year': { '$year': "$verification_date" }, | |
| 'month': { '$month': "$verification_date" }, | |
| 'day': { '$dayOfMonth': "$verification_date" } | |
| }, | |
| 'retweets': { $last: "$retweets" }}}, |