globalStyle('light-font', {
fontWeight: 300,
fontFamily: "'ptRegular', Arial, Helvetica, sans-serif!important",
color: 'green'
})
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { IPFSHTTPClient } from 'ipfs-http-client' | |
import all from 'it-all' | |
let ipfs: IPFSHTTPClient | |
async function getIpfsClient() { | |
if (!ipfs) { | |
const { create: createIpfsClient } = await import('ipfs-http-client') | |
ipfs = createIpfsClient({ | |
url: `http://localhost:5001/api/v0`, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { OwnedContractsProps } from 'modules/profiles/data/types' | |
import { OwnedContractsReturn } from 'modules/profiles/data/types' | |
import 'wagmi/server' | |
export interface fetchOwnedContractsResponse { | |
contractsData: OwnedContractsReturn[] | |
contractsCount: number | |
pageKey?: number | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Alchemy, AssetTransfersCategory } from 'alchemy-sdk' | |
import { ethers } from 'ethers' | |
import { format } from 'date-fns' | |
import { fetchTransaction } from 'shared/lib/wagmi-core' | |
import { FirstTransaction } from './types' | |
import 'shared/config/wagmi/server' | |
import { isMainnet } from 'shared/utils' | |
export async function fetchOnchainSince( | |
address: string, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { NextApiRequest, NextApiResponse } from 'next' | |
import { | |
getClient, | |
postQuery, | |
SanityPostQueryProps, | |
} from '../../../lib/sanity' | |
const blogPostHandler = async (req: NextApiRequest, res: NextApiResponse): Promise<void> => { | |
const { slug } = req.query |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useCallback, useEffect } from 'react' | |
import { css } from '@emotion/react' | |
import { useDropzone } from 'react-dropzone' | |
interface DropzoneProps { | |
value?: any | |
description?: string | |
accepted?: string | |
onDrop: (acceptedFiles: File) => any | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Git Aliases | |
alias gs='git status -s' | |
alias gb='git branch' | |
alias gd='git diff' | |
alias gl='git log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --dat$ | |
alias gco='git checkout' | |
alias ga='git add .' | |
alias gcm='git commit -m' | |
alias gpo='git push origin' | |
alias gpuo='git pull origin' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
magick mogrify -density 72 -resize 1600 *.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const typeWriter = (el, cb) => { | |
const TxtType = function(config) { | |
this.type = config.type | |
this.el = config.el | |
this.speed = config.speed | |
this.txt = '' | |
this.i = 0 | |
this.tick() | |
} | |
TxtType.prototype.tick = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
/* | |
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
"Print to console": { | |
"prefix": "log", | |
"body": [ |
NewerOlder