- Tone: Friendly yet authoritative—appeal to non-technical users while signaling deep expertise.
- Visuals: Clean, modern design with subtle nods to AI (e.g., abstract code waves) and professionalism (e.g., polished app screenshots).
- Call-to-Action (CTA): “Get a Free Project Assessment” or “Polish My App Now” on every page.
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 { openStreamDeck, listStreamDecks, StreamDeck } from '@elgato-stream-deck/node'; | |
import sharp from 'sharp'; | |
import HID from 'node-hid'; | |
import usb, { LibUSBException } from 'usb'; | |
async function main() { | |
try { | |
console.log('Looking for Stream Deck Plus devices...'); | |
// Find the Stream Deck Plus device |
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 { Database } from 'limbo-wasm'; | |
// Initialize Limbo database in memory | |
const db = new Database(':memory:'); | |
// Function to initialize the database with error handling | |
function initializeDatabase() { | |
try { | |
db.exec(` | |
CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT); |
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 { Database } from 'bun:sqlite'; | |
import PocketBase from 'pocketbase'; | |
const BATCH_SIZE = 50; | |
const SLEEP_TIME = 1000; | |
const pb = new PocketBase('https://tx-addresses.pockethost.io'); | |
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)); | |
async function migrateData() { |
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
ARG BUN_VERSION=latest | |
FROM oven/bun:${BUN_VERSION} AS builder | |
WORKDIR /app | |
ENV NODE_ENV=production | |
# Copy package files first | |
COPY --link bun.lock package.json ./ | |
# Add conditional installation of svelte-adapter-bun and update config |
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
COOLIFY_API_URL=https://coolify.yourdomain.com | |
COOLIFY_API_KEY=abc123 | |
WEBHOOKS_SECRET=shared-secret-between-gitea-and-deploy |
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 { serve } from "bun"; | |
import fs from "fs"; | |
// Extract the repository name and branch from the payload | |
function extractRepoInfo(payload: { repository: { full_name: string }; ref: string }) { | |
const repoName = payload?.repository?.full_name; // Repository name is in 'full_name' | |
const branch = payload?.ref?.split("/").pop(); // Branch name is after 'refs/heads/' | |
return { repoName, branch }; | |
} | |
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 { preferences } from '$lib/stores/preferences'; // Reactive store | |
import Pagination from './pagination.svelte'; | |
import { truncateDescription, glance } from '$lib/realty/presentation'; | |
let { data } = $props(); | |
let selectedIndex = $state(1); | |
let listings = $derived(data.results.records); | |
let pagination = $derived(data.results.pagination); |
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 { onMount } from 'svelte'; | |
import Swiper from 'swiper'; | |
import { register } from 'swiper/element/bundle'; | |
import 'swiper/css'; | |
import 'swiper/css/navigation'; | |
import 'swiper/css/pagination'; | |
import 'swiper/css/thumbs'; | |
interface ImageSizes { |
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> | |
import { goto } from '$app/navigation'; | |
import { page } from '$app/stores'; | |
import { onMount } from 'svelte'; | |
import { queryParameters, ssp } from 'sveltekit-search-params'; | |
import { propertySchema } from '$lib/helpers/propertySchema'; | |
import CurrencyInput from '@canutin/svelte-currency-input'; | |
let system = $state({ Class: '', Type: '' }); |
NewerOlder