Source references:
- https://github.com/sh-tiye/lexicon-fractional-index
- License: Listed as MIT on crates.io, but readme says "License: TODO".
Source references:
#!/bin/bash | |
# Directory to store backups within | |
# Should not end with a slash and not be stored within | |
# the BookStack directory | |
BACKUP_ROOT_DIR="$HOME" | |
# Directory of the BookStack install | |
# Should not end with a slash. | |
BOOKSTACK_DIR="/var/www/bookstack" |
import { Extension } from "@tiptap/core"; | |
export interface LineHeightOptions { | |
types: string[]; | |
heights: string[]; | |
defaultHeight: string; | |
} | |
declare module "@tiptap/core" { | |
interface Commands<ReturnType> { |
import { Extension } from "@tiptap/core"; | |
import "@tiptap/extension-text-style"; | |
export type ColorOptions = { | |
types: string[]; | |
}; | |
declare module "@tiptap/core" { | |
interface Commands<ReturnType> { | |
backColor: { |
You need to provide some classes and decorators yourself to maintain the same style as [email protected]
.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}
↓
let axios = require('axios') | |
let zone = 'test.com' | |
let head = { | |
'X-Auth-Email': '[email protected]', | |
'X-Auth-Key': 'test123', | |
'Content-Type': 'application/json', | |
} | |
async function getZoneID() { |
import { marked } from 'marked' | |
import hljs from 'highlight.js' | |
import katex from 'katex' | |
marked.setOptions({ | |
langPrefix: 'hljs lang-', | |
pedantic: false, | |
gfm: true, // 是否启动类似Github样式的Markdown | |
breaks: false, // 是否支持Github换行符 | |
tables: true, // 是否支持Github形式的表格 |
'use strict'; | |
var node = require('@remix-run/node'); | |
node.installGlobals(); |
<div x-data="setupEditor(@entangle($attributes->wire('model')).defer)" x-init="() => init($refs.editor)" wire:ignore | |
{{ $attributes->whereDoesntStartWith('wire:model')->merge(['class' => 'editor !w-full !max-w-full']) }}> | |
<template x-if="editor"> | |
<div class="flex space-x-4 items-center dark:text-neutral-100 fill-current py-2"> | |
<button @click.prevent="Alpine.raw(editor).chain().toggleBold().focus().run()"> | |
<x-icon-bold class="w-4 h-4" /> | |
</button> | |
<button @click.prevent="Alpine.raw(editor).chain().toggleItalic().focus().run()"> | |
<x-icon-italic class="w-4 h-4" /> | |
</button> |
-- Based off IETF draft, https://datatracker.ietf.org/doc/draft-peabody-dispatch-new-uuid-format/ | |
create or replace function uuid_generate_v7() | |
returns uuid | |
as $$ | |
begin | |
-- use random v4 uuid as starting point (which has the same variant we need) | |
-- then overlay timestamp | |
-- then set version 7 by flipping the 2 and 1 bit in the version 4 string | |
return encode( |