This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template <int, typename> | |
struct List; | |
struct Nil { | |
template <int _NValue> | |
using Append = List<_NValue, Nil>; | |
}; | |
template <int _Value, typename _Next> | |
struct List { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct SmashableView: NSViewRepresentable { | |
typealias NSViewType = _SmashableNSView | |
let text: String | |
class _SmashableNSView: NSView { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <WebKit/WebKit.h> | |
NS_ASSUME_NONNULL_BEGIN | |
@interface WKWebView (InputAccessory) | |
@property (nonatomic, nullable, setter=cy_setCustomInputAccessoryView:) UIView *cy_customInputAccessoryView; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct HeaderView: View { | |
var body: some View { | |
HStack { | |
Image(systemName: "info.circle.fill") | |
.resizable() | |
.frame(width: 12, height: 12) | |
Text("Section Header") | |
.font(.system(size: 13)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Fuck X | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Save your eyes while using X (formerly Twitter) | |
// @author Cyandev <unixzii@gmail.com> | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<auto... Val> | |
struct List; | |
template<> | |
struct List<> { | |
template<auto Elem> | |
using Append = List<Elem>; | |
}; | |
template<auto Head, auto... _Rest> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <dlfcn.h> | |
void sendMessageToDock(NSString *message) { | |
static dispatch_once_t onceToken; | |
static void (*ptrCoreDockSendNotification)(CFStringRef, int) = NULL; | |
dispatch_once(&onceToken, ^{ | |
void *handle = dlopen("/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices", RTLD_LAZY); | |
if (!handle) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// HackingTextTransition.swift | |
// Copyright (c) 2022 Cyandev<unixzii@gmail.com>. | |
// | |
import Foundation | |
import DequeModule | |
class HackingTextTransition { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[custom] | |
enable_rule_generator=true | |
overwrite_original_rules=true | |
# 白名单模式 PROXY,黑名单模式 DIRECT | |
custom_proxy_group=🧭Final`select`[]🌑Proxy`[]🌐Direct | |
# 节点选项 | |
custom_proxy_group=🌑Proxy`select`[]🧯Fallback`[]🕹AutoTest`.* | |
# 国际流媒体服务 | |
custom_proxy_group=🎞Streaming`select`[]🌑Proxy`[]🕹AutoTest`.* |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder