Skip to content

Instantly share code, notes, and snippets.

View hanspagel's full-sized avatar
👀

Hans Pagel hanspagel

👀
View GitHub Profile
@hanspagel
hanspagel / tsconfig.json
Created April 3, 2021 11:50
hocuspocus tsconfig.json
{
"compilerOptions": {
"target": "es2019",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"esModuleInterop": true,
<?php
namespace App\Drivers;
use SplFileInfo;
use FilesystemIterator;
use Orbit\Facades\Orbit;
use Illuminate\Support\Str;
use RecursiveIteratorIterator;
use RecursiveDirectoryIterator;
@hanspagel
hanspagel / CustomTable.js
Last active September 17, 2022 17:10
Update the Table `width` when the `colwidth` of a TableCell is updated
const CustomTable = Table.extend({
// Add a `width` attribute
addAttributes() {
return {
...this.parent?.(),
width: {
default: null,
},
}
},

Keybase proof

I hereby claim:

  • I am hanspagel on github.
  • I am hanspagel (https://keybase.io/hanspagel) on keybase.
  • I have a public key ASAfRC4yG0qyruU1xQRl5rg1OtzuSUIQLcge9EkFpVeX2go

To claim this, I am signing this object:

@hanspagel
hanspagel / CodeMirror.vue
Created February 14, 2025 10:21
Mount CodeMirror in Vue
<template>
<div ref="editorRef" class="editor" />
</template>
<script setup lang="ts">
import { ref, onMounted, onBeforeUnmount } from 'vue'
import { EditorView, basicSetup } from 'codemirror'
import { json } from '@codemirror/lang-json'
const editorRef = ref<HTMLDivElement | null>(null)