Skip to content

Instantly share code, notes, and snippets.

View bibek-magar's full-sized avatar
♠️
Learning

Bibek Magar bibek-magar

♠️
Learning
View GitHub Profile
@dipeshdulal
dipeshdulal / queryClient.md
Created April 13, 2021 06:17
React Query QueryClient Persistence

Using dehydrate and hydrate function we can persist react query cache in localStorage or AsyncStorage in case of react-native.

Basic implementation for persistence can be made by attaching subscribe function to queryCache and upon new data store the data to persistence layer and upon the app start the persisted cache can be rehydrated.

@dipeshdulal
dipeshdulal / RepoAddInstructions.MD
Last active March 25, 2025 06:14
Get a list of created PR's today.

Instructions

  1. Go to github profile page.
  2. Click on today's or some days contribution
  3. Open Inspector Window
  4. Pase the following code
let rollupWrapper = document.querySelectorAll('.TimelineItem');
@zhangshine
zhangshine / tinymce-react-nextjs.md
Last active November 23, 2024 15:22
NextJs- React - Self hosted TinyMCE
  1. Install (TinyMCE 5.x)
npm install --save tinymce @tinymce/tinymce-react copy-webpack-plugin
  1. Copy static files(tinymce skins) to public folder. Edit file next.config.js
const path = require('path');
const webpack = require('webpack');
const CopyPlugin = require('copy-webpack-plugin');