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> {}↓
| #!/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( |
| <?php | |
| // Generated by curl-to-PHP: http://incarnate.github.io/curl-to-php/ | |
| $ch = curl_init(); | |
| $tweetId = $argv[1]; | |
| $uri = 'https://twitter.com/i/api/graphql/MFRcu86F8zXkX7810z6sGA/Retweeters?variables=%7B%22tweetId%22%3A%22' . $tweetId . '%22%2C%22count%22%3A80%2C%22withTweetQuoteCount%22%3Afalse%2C%22includePromotedContent%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Afalse%2C%22withUserResults%22%3Atrue%2C%22withBirdwatchPivots%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Afalse%7D'; | |
| curl_setopt($ch, CURLOPT_URL, $uri); | |
| curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); |