Skip to content

Instantly share code, notes, and snippets.

@janodev
janodev / waitForExpectation.swift
Last active May 16, 2025 17:13
waitForExpectation
import Foundation
import Testing
func waitForExpectation(
timeout: Duration,
description: String,
fileID: String = #fileID,
filePath: String = #filePath,
line: Int = #line,
column: Int = #column,
@janodev
janodev / diagram.mermaid
Created October 19, 2024 11:26
Housing market
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
CoreDataErrors.h
Core Data
Copyright (c) 2004-2022, Apple Inc.
All rights reserved.
*/
#import <Foundation/NSObject.h>
/* NSError codes for Core Data added errors in NSCocoaErrorDomain. Foundation error codes can be found in <Foundation/FoundationErrors.h>. AppKit error codes can be found in <AppKit/AppKitErrors.h>.
@janodev
janodev / gist:e53bac6df61d0b63ab7f2545781abd38
Created April 19, 2025 22:35 — forked from samhenrigold/gist:5b88f12283513d8808d8cc9b65bc47ee
`UIView.SystemAnimation.delete` demo playground
/// Video demo: https://hachyderm.io/@samhenrigold/114359529882977822
import UIKit
import PlaygroundSupport
final class DeleteDemoVC: UIViewController {
private let stack = UIStackView()
override func viewDidLoad() {
super.viewDidLoad()
@janodev
janodev / default.md
Created June 22, 2025 07:13 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
The sidebar appears to contain:
| Option | What it does |
| ---------------------- | ---------------------------------------------------------------------- |
| **General** | Organization-wide settings, branding, permissions, and defaults. |
| **Connections** | Configure integrations with external services, APIs, and tools. |
| **Sessions** | View and manage Devin's active and past working sessions. |
| **Devin** | Core Devin settings and behavior configuration. |
| **DeepWiki** | Generate and browse AI-created documentation for repositories. |
| **Schedules** | Create recurring or scheduled Devin tasks. |