Skip to content

Instantly share code, notes, and snippets.

@lancy
lancy / cua-driver.sample.txt
Created September 8, 2026 10:37
Okou Desktop 0.48.8 quit hang: diagnosis and three macOS thread samples (2026-09-08)
Analysis of sampling cua-driver (pid 84924) every 1 millisecond
Process: cua-driver [84924]
Path: /Applications/Okou.app/Contents/Resources/cua/cua-driver
Load Address: 0x102db8000
Identifier: cua-driver
Version: 0
Code Type: ARM64
Platform: macOS
Parent Process: Okou [82669]
Target Type: live task
@lancy
lancy / List.swift
Created March 27, 2016 10:20
Mutating Generic Enum Issue
enum List<Element> {
case End
indirect case Node(Element, next: List<Element>)
}
enum ListError: ErrorType {
case EndCannotAppendValue
}
extension List {
@lancy
lancy / APEFunctionalExtension.h
Created November 16, 2015 03:56
APEFunctionalExtension
//
// Created by Chenyu Lan on 9/4/14.
// Copyright (c) 2014 Fenbi. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSArray (APEFunctionalExtension)
- (NSArray *)map:(id (^)(id value))transformBlock;
@lancy
lancy / YTKAnimatingRequestAccessory.h
Created November 10, 2014 14:29
YTKAnimatingRequestAccessory
//
// YTKAnimatingRequestAccessory.h
// Ape_uni
//
// Created by Chenyu Lan on 10/30/14.
// Copyright (c) 2014 Fenbi. All rights reserved.
//
#import <Foundation/Foundation.h>