Skip to content

Instantly share code, notes, and snippets.

View abhinav-anshul's full-sized avatar
❄️
its cold outside

abhinav anshul abhinav-anshul

❄️
its cold outside
View GitHub Profile
import React from "react"
import { dehydrate, QueryClient, useQuery } from "react-query"
import { useRouter } from "next/router"
import Image from "next/image"
import { shimmer, toBase64 } from "utils/ImageShimmer"
function Celebslug() {
const getPeopleData = async () => {
const result = await fetch(
`${process.env.NEXT_PUBLIC_BASE_URL}/person/${router?.query?.id}?api_key=${process.env.NEXT_PUBLIC_API_KEY}&` +
@abhinav-anshul
abhinav-anshul / meta-tags.md
Created June 4, 2021 09:12 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
@abhinav-anshul
abhinav-anshul / useReducer Hook
Created April 5, 2021 00:53
React useReducer Hook in the simplest way possible
function reducer(state, action) {
console.log("HI", action);
switch (action) {
case "increment":
return state + 1;
case "decrement":
return state - 1;
}
}
<!-- DO NOT REMOVE THE FOLLOWING COMMENT -->
<!-- (c) Copyright 2014 Caroline Hill. All Rights Reserved. Contact Mlle Caroline Schnapp at [email protected] -->
<!-- DO NOT REMOVE THE ABOVE COMMENT -->
{{ '//ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js' | script_tag }}
<p>hello</p>
<!-- Stacking works here -->
<style>
/* eslint-disable */
import React, { useState, useEffect } from 'react'
import { SidePanel, Button, DropDown, TextInput } from '@aragon/ui'
import { Octokit } from '@octokit/rest'
function Import() {
const [opened, setOpened] = useState(false)
const token = localStorage.getItem('GithubToken')
// console.log(token)
@abhinav-anshul
abhinav-anshul / media-query.css
Created November 27, 2019 10:54 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS