Skip to content

Instantly share code, notes, and snippets.

View transcendr's full-sized avatar
💭
Working Hard

Bryan Price-McConnahea transcendr

💭
Working Hard
View GitHub Profile
@transcendr
transcendr / close_hidden_buffers.lua
Created January 28, 2024 16:38
Lua function to close hidden buffers in Neovim on buffer switch
-- Define the close_hidden_buffers function
local function close_hidden_buffers()
local curr_buf_num = vim.api.nvim_get_current_buf()
local all_buf_nums = vim.api.nvim_list_bufs()
for _, buf_num in ipairs(all_buf_nums) do
if buf_num ~= curr_buf_num and vim.api.nvim_buf_is_valid(buf_num) and vim.api.nvim_buf_is_loaded(buf_num) and vim.fn.bufwinnr(buf_num) == -1 then
if vim.fn.getbufvar(buf_num, '&buftype') ~= 'terminal' then
vim.api.nvim_buf_delete(buf_num, { force = true })
end
Diagnostics:
1. cannot use se (variable of type *StripeEvent) as *WebhookEvent value in return statement: *StripeEvent does not implement *WebhookEvent (type *WebhookEvent is pointer to interface, not interface) [InvalidIfaceAssign]
evt_1OUaFUAV1CR9sKJKUdDxjN05
//import { createNextApiHandler } from "@trpc/server/adapters/next";
import { nodeHTTPRequestHandler } from '@trpc/server/adapters/node-http';
import { appRouter, createContext } from '@wildcard/alpha-v2/trpc';
import { LoggingService } from '@wildcard-nde/utils-logging';
import { TRPCError } from '@trpc/server';
import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
import Cors from 'cors';
// Initializing the cors middleware
// You can read more about the available options here:
GOOGLE_APPLICATION_CREDENTIALS
qa9hxCG0X1ReNdeZFKAm
config:
module.exports = {
preset: "ts-jest",
testEnvironment: "jsdom",
globals: {
"ts-jest": {
tsconfig: "tsconfig.json",
},
},
setupFilesAfterEnv: ["@testing-library/jest-dom/extend-expect"],
(()=>{"use strict";!function(){var t,e,n,a,r,o="true"===window.localStorage.getItem("DEBUG"),c=u("partnerId",function(){var t=new URLSearchParams(window.location.search).get("partner");if(t)return t;return window.location.pathname.split("/").pop()||"unknown-partner"}()),i=u("clientRefId","".concat(c,":").concat(Math.random().toString(36).substring(2,15))),s=["reflection.app.link","reflection.test-app.link","buy.stripe.com","stripe.com"];function u(t,e){return m(t)||m(t,e)}function m(t,e){var n;return e&&(document.cookie="".concat(t,"=").concat(e,";path=/")),null===(n=document.cookie.split("; ").find((function(e){return e.startsWith("".concat(t,"="))})))||void 0===n?void 0:n.split("=")[1]}t=new URLSearchParams(window.location.search).get("utm_campaign"),e=new URLSearchParams(window.location.search).get("utm_content"),n=new URLSearchParams(window.location.search).get("utm_term"),a=new URLSearchParams(window.location.search).get("utm_source"),r=new URLSearchParams(window.location.search).get("utm_medium"),docume
This file has been truncated, but you can view the full file.
{"logging":{"webpack.Compiler":{"entries":[{"time":1702457659552,"type":"time","args":["make hook",10,369514922],"message":"make hook: 10369.514922 ms"},{"time":1702457659553,"type":"time","args":["finish make hook",0,78326],"message":"finish make hook: 0.078326 ms"},{"time":1702457660231,"type":"time","args":["finish compilation",0,678678984],"message":"finish compilation: 678.678984 ms"},{"time":1702457697952,"type":"time","args":["seal compilation",37,720368420],"message":"seal compilation: 37720.36842 ms"},{"time":1702457697952,"type":"time","args":["afterCompile hook",0,173766],"message":"afterCompile hook: 0.173766 ms"},{"time":1702457697963,"type":"time","args":["emitAssets",0,10499814],"message":"emitAssets: 10.499814 ms"},{"time":1702457697963,"type":"time","args":["emitRecords",0,117607],"message":"emitRecords: 0.117607 ms"}],"filteredEntries":0,"debug":false},"webpack.Compilation.ModuleProfile":{"entries":[{"time":1702457659562,"type":"log","args":[" | 104 ms (parallelism 2.8) resolve to new module
import { Component, Input } from '@angular/core';
import {
moduleMetadata,
Story,
Meta,
componentWrapperDecorator,
} from '@storybook/angular';
import { ActionGridComponent } from './action-grid.component';
@Component({