Discover and search community code snippets.
Details The file “SnippetsLabAlfred.alfredworkflow” couldn’t be opened. Domain: NSCocoaErrorDomain Code: 256 NSURL: Contents/SharedSupport/Integrations/SnippetsLabAlfred.alfredworkflow -- file:///Applications/SnippetsLab.app/ NSUnderlyingError: Error Domain=NSOSStatusErrorDomain Code=-10814 "kLSApplicationNotFoundErr: E.g. no application claims the file" UserInfo={_LSLine=4357, _LSFunction=_LSOpenStuffCallLocal, _LSFile=LSOpenCore.mm, _LSErrorMessage=kLSApplicationNotFoundErr} -- System Information macOS 27.2 (26B123) arm64_Native SnippetsLab 2.7.1 (7388) Mac App Store Timestamp: 2026-11-06 7:39:51 pm +0000
https://snipperapp.com/s/79cfb393-8230-410a-ae82-cd40abf95ca2
@resultBuilder struct HTMLBuilder { static func buildBlock(_ components: String...) -> String { components.joined(separator: "\n")
radio
Get gemome wide SNPs, using a reference data and NGS data.
claude test
# MacOS SnipperApp 3 - Claude Code Instructions This file is automatically loaded by Claude Code on every session. All project memory and coding rules live in `.ai/`.
A simple result builder for generating HTML strings.
A decorator that retries a function call with exponential backoff.
import time import functools from typing import Callable, TypeVar
A custom React hook for debouncing values.
import { useEffect, useState } from "react"; export function useDebounce<T>(value: T, delay: number): T { const [debouncedValue, setDebouncedValue] = useState(value);
Convert dataclasses to and from JSON with type safety.
from dataclasses import dataclass, asdict import json from typing import Optional
A robust bash script template with error handling.
#!/usr/bin/env bash set -euo pipefail IFS=$'\n\t'
A frosted glass card effect using backdrop-filter.
.glass-card { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
Modern async/await pattern for making network requests in Swift.
func fetchData<T: Decodable>(from url: URL) async throws -> T { let (data, response) = try await URLSession.shared.data(from: url) guard let httpResponse = response as? HTTPURLResponse,
A concurrent worker pool using goroutines and channels.
package main import ( "fmt"
Define custom error types with the thiserror crate pattern.
use std::fmt; #[derive(Debug)] pub enum AppError {
Properly clean up side effects in React hooks to prevent memory leaks.
import { useEffect, useRef } from "react"; export function useInterval(callback: () => void, delay: number | null) { const savedCallback = useRef(callback);