This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
CD C:\Program Files\qemu | |
.\qemu-system-x86_64.exe ^ | |
-D "C:\qemu\qemu.log" ^ | |
-machine q35 ^ | |
-name fedora ^ | |
-accel whpx,kernel-irqchip=off ^ | |
-m 2G ^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mongoose from 'mongoose'; | |
import { revalidatePath } from 'next/cache'; | |
import { Field, Form, FormButton } from '@/components/form'; | |
import { SCHEMAS, capability, mongoDb } from '@/lib/server'; | |
import type { Lead } from '@/lib/server/schemas'; | |
import { isString } from '@/lib/validators'; | |
async function deadReasonAction(_: any, formData: FormData): Promise<{ error: string | null }> { | |
'use server'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { house } from '$lib/graphics'; | |
import { page } from '$app/stores'; | |
import type { WpPost } from '$lib/wp'; | |
let bgMp4: string | undefined | null; | |
let bgWebm: string | undefined | null; | |
let post: WpPost | undefined; | |
$: post = $page.data.post; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sharp from 'sharp'; | |
export async function trimImage(input: Buffer) { | |
try { | |
const metadata = await sharp(input).metadata(); | |
const width = metadata.width || 0; | |
const height = metadata.height || 0; | |
if (!width || !height) return input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { writable, type Updater, type Writable } from 'svelte/store'; | |
/** | |
* Create a writable store that persists to sessionStorage or localStorage. | |
* | |
* Usage example: | |
* export const colorScheme = createPersistentWritable<'system' | 'dark' | 'light'>({ storageId: 'color-scheme', useLocalStorage: true }, 'dark'); | |
*/ | |
export function createPersistentWritable<T>( | |
{ storageId, useLocalStorage }: { storageId: string; useLocalStorage?: boolean }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
theme: { | |
extend: { | |
colors: { | |
'almond': { DEFAULT: '#EFDBC5' }, | |
'antique-brass': { DEFAULT: '#CD9575' }, | |
'apricot': { DEFAULT: '#FDD9B5' }, | |
'aquamarine': { DEFAULT: '#78DBE2' }, | |
'asparagus': { DEFAULT: '#87A96B' }, | |
'atomic-tangerine': { DEFAULT: '#FFA474' }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { Spinner } from '$lib/util'; | |
import './select.css'; | |
interface Option { | |
value: string; | |
label: string; | |
} | |
export let value = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { formatDateShort } from '$lib/util'; | |
import Icon from '@iconify/svelte'; | |
import { FilterStore, getEndDefault, getStartDefault } from './store'; | |
$: start = $FilterStore.start; | |
$: end = $FilterStore.end; | |
let startInput: HTMLInputElement; | |
let endInput: HTMLInputElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { applyAction, enhance } from '$app/forms'; | |
import { page } from '$app/stores'; | |
import { RoofGraphic } from '$lib/graphics'; | |
import { fade } from 'svelte/transition'; | |
import type { ActionUpdate, Result } from './form.svelte.d'; | |
import Button from './button.svelte'; | |
import Field from './field.svelte'; | |
import { EmailIcon, MessageIcon, NameIcon, PhoneIcon } from './icons'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
import { createEventDispatcher } from 'svelte'; | |
import { ResizeStore } from './window-events'; | |
import type { ResizeDetail } from './resize.svelte.d'; | |
export let debounce = 0; | |
export let mobile: boolean | null = null; | |
const dispatch = createEventDispatcher<{ resize: ResizeDetail }>(); | |
let timeout: ReturnType<typeof setTimeout>; |
NewerOlder