Skip to content

Instantly share code, notes, and snippets.

View heddendorp's full-sized avatar
👨‍💻
Coding

Lukas Heddendorp heddendorp

👨‍💻
Coding
View GitHub Profile
@heddendorp
heddendorp / trpc-client.ts
Last active October 30, 2024 17:34
Example link that uses angular httpClient to run trpc calls
import { inject, InjectionToken } from '@angular/core';
import type { AppRouter } from '@evorto/server/appRouter';
import { HttpClient } from '@angular/common/http';
import { CreateTRPCClient, createTRPCClient, TRPCLink } from '@trpc/client';
import type { AnyRouter } from '@trpc/server';
import { observable } from '@trpc/server/observable';
import superjson, { SuperJSONResult } from 'superjson';
const TRPC_CLIENT = new InjectionToken<CreateTRPCClient<AppRouter>>(
'TRPC_CLIENT',
@heddendorp
heddendorp / coverage-plugin.patch
Created March 9, 2023 13:43
COverage plugin registration
diff --git a/cypress.config.js b/cypress.config.js
index c38bcbc..bb8c107 100644
--- a/cypress.config.js
+++ b/cypress.config.js
@@ -36,6 +36,7 @@ module.exports = defineConfig({
'enable-feature': (feature) =>
fetch(BASE_URL + `/e2e/enable-feature/${feature}`, { method: 'POST' }),
});
+ require('@heddendorp/per-test-v8-cov/plugin')(on, config);
},
@heddendorp
heddendorp / debugging-port.patch
Created March 9, 2023 13:35
n8n-debugging-port
diff --git a/package.json b/package.json
index 7600fd9..654fd93 100644
--- a/package.json
+++ b/package.json
@@ -19,9 +19,9 @@
"lintfix": "turbo run lintfix",
"optimize-svg": "find ./packages -name '*.svg' ! -name 'pipedrive.svg' -print0 | xargs -0 -P16 -L20 npx svgo",
"start": "run-script-os",
- "start:default": "cd packages/cli/bin && ./n8n",
+ "start:default": "cd packages/cli/bin && node --inspect=9222 n8n",
From f7c7a7b994a2b8eff89cb2c070dee956445c4193 Mon Sep 17 00:00:00 2001
From: Lukas Heddendorp <lu.heddendorp@gmail.com>
Date: Sun, 5 Mar 2023 19:25:33 +0100
Subject: [PATCH] Add flake detection plugin
---
front/cypress/cypress.config.js | 1 +
front/package.json | 2 +-
server/package.json | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
{
"nodes": [
{ "name": "Mike" },
{ "name": "Marcia" },
{ "name": "Chrissy" },
{ "name": "Selena" },
{ "name": "William" },
{ "name": "Mikael" },
{ "name": "Bleu" },
{ "name": "Tagg" },
@heddendorp
heddendorp / example.html
Created January 16, 2020 19:39
Gradient line problem
<html>
<body>
<h1>Icons8 explainer</h1>
<p>
So gradient line icons seem to work if you just select an icon and download it as svg. But once you recolor them the defined gradients do not have unique names anymore, making them break if multiple icons are used dire in the code as svg. <br>
Look at the source of these examples and open this code in a browser to see the behaviour that I expereinced.
</p>
<h2>This does not work</h2>
<div style="flex-direction: row;">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64pt" height="64pt" viewBox="0 0 64 64" version="1.1">
@heddendorp
heddendorp / problem.html
Created August 9, 2016 17:08
Ionic 2 problem files
<ion-header>
<ion-navbar news>
<button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>Neuigkeiten</ion-title>
<ion-buttons end>
<button (click)="newPost()">
<ion-icon name="add"></ion-icon>
</button>