I hereby claim:
- I am kandros on github.
- I am jagasantagostino (https://keybase.io/jagasantagostino) on keybase.
- I have a public key whose fingerprint is 6DDD E439 6C25 671A 477A 9687 69BC E331 BD9E 8B66
To claim this, I am signing this object:
// lib/server/sse/event-bus.ts | |
import { EventEmitter } from "events"; | |
import { logger } from "~/lib/logger/logger"; | |
interface SessionEvent { | |
type: string; | |
data: Object; | |
timestamp: string; | |
} |
{ | |
"functional component": { | |
"prefix": ["func, fnc", "component", "fc", "func"], | |
"description": "react functional component", | |
"body": [ | |
"import React from 'react'", | |
"type Props = {}", | |
"export const $TM_FILENAME_BASE: React.FC<Props> = () => {", | |
"\treturn (", | |
"\t\t<div>", |
FROM node:14-alpine as builder | |
WORKDIR /app | |
ENV NODE_ENV=production | |
COPY package.json package-lock.json tsconfig.json ./ | |
COPY src ./src | |
RUN npm ci --also=dev | |
RUN npm run build:ts | |
RUN npm prune --production |
e2e | |
fixtures | |
*.test.* | |
node_modules | |
.next | |
.env | |
Dockerfile | |
.git |
import { UserProvider } from "@app/context/user-context" | |
import "@app/styles/font.css" | |
import "@app/styles/global.css" | |
import "@app/styles/reset.css" | |
import { NextComponentType } from "next" | |
import App, { AppContext, AppInitialProps, AppProps } from "next/app" | |
import Head from "next/head" | |
import { parseCookies } from "nookies" | |
const CustomApp: NextComponentType<AppContext, AppInitialProps, AppProps> = ({ Component, pageProps }) => { |
const path = require(`path`) | |
const { createFilePath } = require(`gatsby-source-filesystem`) | |
exports.createPages = async ({ graphql, actions }) => { | |
const { createPage } = actions | |
const blogPost = path.resolve(`./src/templates/blog-post.js`) | |
const postsPromise = graphql( | |
` | |
{ |
const paymentMachine = Machine({ | |
id: 'payment', | |
initial: 'method', | |
states: { | |
method: { | |
initial: 'cash', | |
states: { | |
cash: { on: { SWITCH_CHECK: 'check' } }, | |
check: { on: { SWITCH_CASH: 'cash' } }, | |
hist: { type: 'history' } |
const React = require("react") | |
exports.onRenderBody = ({ setPostBodyComponents }) => { | |
if (process.env.NODE_ENV !== `production`) { | |
return null | |
} | |
return setPostBodyComponents([ | |
<script | |
key="simpleanalytics" | |
async |
I hereby claim:
To claim this, I am signing this object: