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
| Homebrew build logs for neovim on macOS 12 | |
| Build date: 2022-07-02 13:16:18 |
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
| " lsp specific config | |
| lua << EOF | |
| local lspconfig = require('lspconfig') | |
| local autopairs = require('nvim-autopairs') | |
| local cmp = require('cmp') | |
| local saga = require('lspsaga') | |
| local lspkind = require('lspkind') | |
| saga.init_lsp_saga() |
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 from "react"; | |
| import { Field } from "react-final-form"; | |
| import { useRouter } from "next/router"; | |
| import styled from "styled-components"; | |
| import LoginRegistrationLayout from "components/LoginRegistrationLayout"; | |
| import tempId from "lib/tempId"; | |
| import TextInput from "components/TextInput"; | |
| import PageQuery from "components/PageQuery"; | |
| import ImageUploadInput from "components/ImageUploadInput"; | |
| import Button from "components/Button"; |
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 from "react"; | |
| import PropTypes from "prop-types"; | |
| import { Query } from "lib/Query"; | |
| import styled from "styled-components"; | |
| import Button from "components/Button"; | |
| import Icon from "components/icons"; | |
| const TextWrapper = styled.div` | |
| margin: 15px; | |
| `; |
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
| function QueryIndexDemo() { | |
| const [currentPage, setCurrentPage] = useState(1); | |
| return ( | |
| <Query | |
| userType="vendor" | |
| query={{ | |
| grimers: { | |
| fields: ["nickname", "hp", "createdAt"], | |
| paginate: { | |
| page: currentPage, |
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 client = require('@sendgrid/mail'); | |
| require('dotenv').config(); | |
| function sendEmail(sendgridClient, message, senderEmail, senderName, receiverEmail, contactEmail) { | |
| return new Promise((fulfill, reject) => { | |
| const data = { | |
| from: { | |
| email: senderEmail, | |
| name: senderName, | |
| }, |
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, { useEffect, useState } from 'react'; | |
| import { get } from 'lodash'; | |
| function IframeTest() { | |
| const [size, setSize] = useState({}); | |
| function receiveMessage(message) { | |
| const { data } = message; | |
| if (get(data, 'type') === 'resize') { | |
| const { width, height } = data; |
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
| let(:index_req) do | |
| { | |
| data: { | |
| appContentScope: { | |
| id: app_scope.id, | |
| fields: ['name'], | |
| include: { | |
| categoryAppContentScopes: { | |
| filter: { appContentScopeId: { fromContext: 'appContentScope.id' } }, | |
| sort: [{ field: 'position', direction: 'asc' }], |
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 { useRef, useEffect } from 'react'; | |
| // stolen from: | |
| // https://usehooks.com/useWhyDidYouUpdate/ | |
| export default function useRenderDebugger(name, props) { | |
| // Get a mutable ref object where we can store props ... | |
| // ... for comparison next time this hook runs. | |
| const previousProps = useRef(); | |
| useEffect(() => { |
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 getConfig from 'next/config'; | |
| import '@v1/theme/main.scss'; | |
| const { | |
| publicRuntimeConfig: { API_BASE_URL } | |
| } = getConfig(); |
NewerOlder