Skip to content

Instantly share code, notes, and snippets.

View crashmax-dev's full-sized avatar
:octocat:
Meow

Vitalij Ryndin crashmax-dev

:octocat:
Meow
  • Russia
  • 09:27 (UTC +08:00)
View GitHub Profile
<template>
<div class="collapsible" :class="{ open }">
<div class="collapsible-content">
<slot />
</div>
</div>
</template>
<script setup lang="ts">
defineProps<{
[ 0.000000] DMI: Memory slots populated: 2/4
[ 0.003157] ACPI: Reserving FACP table memory at [mem 0x90668000-0x90668113]
[ 0.003157] ACPI: Reserving DSDT table memory at [mem 0x905eb000-0x9065dc18]
[ 0.003158] ACPI: Reserving FACS table memory at [mem 0x92663000-0x9266303f]
[ 0.003158] ACPI: Reserving HWIN table memory at [mem 0x9067e000-0x9067e06b]
[ 0.003158] ACPI: Reserving SSDT table memory at [mem 0x90672000-0x9067d8de]
[ 0.003159] ACPI: Reserving SSDT table memory at [mem 0x9066a000-0x90671f63]
[ 0.003159] ACPI: Reserving SSDT table memory at [mem 0x90669000-0x906691ac]
[ 0.003159] ACPI: Reserving FIDT table memory at [mem 0x90662000-0x9066209b]
[ 0.003160] ACPI: Reserving MCFG table memory at [mem 0x90661000-0x9066103b]
{
"compilerOptions": {
"target": "ESNext",
"jsx": "preserve",
"lib": [
"ESNext",
"DOM",
"DOM.Iterable"
],
"baseUrl": ".",
app.mixin({
updated() {
const el = this.$el
if (el && el.style) {
el.style.transition = 'box-shadow 0.3s ease'
el.style.boxShadow = 'inset 0px 0px 0px 1px tomato'
setTimeout(() => {
el.style.boxShadow = ''
}, 300)
}
// ==UserScript==
// @name fake-random-userscript
// @version 0.0.0
// @license MIT
// @match https://www.random.org/widgets/integers/*
// ==/UserScript==
(function() {
"use strict";
function l(n, t, o) {
import antfu from '@antfu/eslint-config'
export default antfu({
typescript: true,
markdown: true,
yaml: true,
rules: {
'antfu/no-top-level-await': 'off',
'curly': 'off',
'no-console': 'off',
// ==UserScript==
// @name reyohoho-extended
// @version 0.0.0
// @license MIT
// @homepage https://github.com/crashmax-dev/reyohoho-extended
// @match https://reyohoho.github.io/reyohoho/*
// @updateURL https://github.com/crashmax-dev/reyohoho-extended.meta.js
// @downloadURL https://github.com/crashmax-dev/reyohoho-extended.user.js
// ==/UserScript==
@crashmax-dev
crashmax-dev / client.ts
Created April 28, 2024 00:28 — forked from artalar/client.ts
reatomGql real example
import { fingerprint } from 'src/infrastructure/fingerprint';
import { Client, fetchExchange, makeOperation, mapExchange } from 'urql';
export const client = new Client({
url: '/api/graphql',
requestPolicy: 'network-only',
exchanges: [
mapExchange({
async onOperation(operation) {
return makeOperation(operation.kind, operation, {
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/>
</head>
<body style="height: 300vh">
<svg style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);"
width="655" height="209" viewBox="0 0 655 209" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M653 207V62C653 28.8629 626.228 2 593.091 2C519.318 2 391.639 2 292.675 2C270.583 2 252.717 19.9124 252.717 42.0038C252.717 63.5378 252.717 81.7221 252.717 81.7221C252.717 81.7221 252.717 81.7221 252.717 81.7221V167C252.717 189.091 234.808 207 212.717 207H2"
stroke="#EAECF0" stroke-width="4" stroke-linecap="round"/>
/* eslint-disable */
// https://github.com/Chronstruct/display-primitives/issues/1#issuecomment-1518496207
// declare global {
// namespace JSX {
// interface IntrinsicElements<T extends string> {
// input: React.DetailedHTMLProps<
// React.InputHTMLAttributes<HTMLInputElement>,
// HTMLInputElement