Skip to content

Instantly share code, notes, and snippets.

AI Research: The Future of Thought Tools

  • The evolution of note-taking #evolution
    • From paper to digital
    • From linear to networked
    • The missing dimension: depth

  • Two-dimensional thinking #2d-thinking
  • Research finding 1 #finding-1
    • Supporting detail A
    • Supporting detail B

  • Research finding 2 #finding-2
    • Links back to >>
    • More details here
@funclosure
funclosure / NeumorphicStyle.swift
Last active March 27, 2025 14:01
Neumorphic Style in SwiftUI
import SwiftUI
/// Created with Claude 3.7 Sonnet
/// A view modifier that applies a neumorphic (soft UI) style to any view.
/// This creates the characteristic raised or inset appearance with dual shadows.
///
/// Example:
/// ```.swift
/// Text("Hello")
/// .padding()
@funclosure
funclosure / TouchVisualizerWindow.swift
Created March 14, 2025 10:34
Touch Visualized Window
/**
on macOS or iPad with External TrackPad/Mouse that using cursor, the additional UIHoverEvent will be fired for the same touch,
which the `.began` might be called twice for the same touch.
*/
import UIKit
@funclosure
funclosure / CALayer+Elevations.swift
Last active May 7, 2021 08:34
Adding elevation with different level to CALayer
import UIKit
extension CALayer {
enum Elevation {
case level1
case level2
case level3
case level4
//
// UIFont+Styles.swift
//
// Created by Chung Yun Lee on 9/4/2021.
//
import Foundation
import UIKit
extension UIFont {
extension FileManager {
// MARK: - Image
func saveImage(_ image: UIImage, bucketName: String, pathComponent: String, for directory: SearchPathDirectory = .documentDirectory) {
// prepare file path
let pathURL = getPathURL(bucketName: bucketName,pathComponent: pathComponent, for: directory)
let directoryURL = URL(fileURLWithPath: pathURL.path).deletingLastPathComponent()
// prepare image data