Skip to content

Instantly share code, notes, and snippets.

@iOSleep
iOSleep / hanime1.yaml
Last active August 17, 2025 16:03
hanime1
payload:
# hanime1.me
# - '+.vdownload.hembed.com'
- '+.hembed.com'
- '+.sb-cd.com'
- '+.sacdnssedge.com'
@iOSleep
iOSleep / ncat.yaml
Last active August 12, 2025 15:30
ncat
payload:
# ncat.app
- '+.yzzy20-play.com'
- '+.yzzy21-play.com'
- '+.yzzy22-play.com'
- '+.yzzy23-play.com'
- '+.yzzy24-play.com'
- '+.yzzy25-play.com'
- '+.yzzy26-play.com'
- '+.yzzy27-play.com'
@iOSleep
iOSleep / namespace.swift
Last active May 7, 2019 04:39
namespace
public struct SomeTypeWrapper<Base> {
public
}
@iOSleep
iOSleep / Delegate.swift
Created May 7, 2019 03:26
An auto-weak delegate for handle modern delegate pattern.
class Delegate<Input, Output> {
private var block: ((Input) -> Output?)?
func delegate<T: AnyObject>(on target: T, block: ((T, Input) -> Output)?) {
self.block = { [weak target] input in
guard let target = target else { return nil }
return block?(target, input)
}
}
func call(_ input: Input) -> Output? {