Skip to content

Instantly share code, notes, and snippets.

@Kam-To
Kam-To / AltitudeCompass-PrivacyPolicy.txt
Created August 31, 2022 14:00
AltitudeCompass-PrivacyPolicy
Altitude Compass - Privacy Policy
Last update date: August 31, 2022
Effective date: August 31, 2022
Altitude Compass (hereinafter referred to as "this product") is a product provided by Kam (hereinafter referred to as "we").
When using this product, we will not collect and use any privacy information about you.
@Kam-To
Kam-To / 海拔指南针 - 隐私政策.txt
Last active August 31, 2022 13:58
海拔指南针 - 隐私政策
海拔指南针 - 隐私政策
更新日期:2022/8/31
生效日期:2022/8/31
海拔指南针(以下称“此产品”)是一款由 Kam(以下称“我们”)提供的产品。
在使用此产品时,我们不会收集和使用任何关于您的隐私信息。
@Kam-To
Kam-To / KTOptionalBindings.txt
Last active April 11, 2021 09:11
handy marco for key-value binds support nil value in value list
#define KTOptionalBindings(...) __KTOptionalBindings(@#__VA_ARGS__,__VA_ARGS__)
NSMutableDictionary *__KTOptionalBindings(NSString *command_value_list, id firstValue, ...) {
va_list args;
va_start(args, firstValue);
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
NSArray *keys = [command_value_list componentsSeparatedByString:@", "];
NSInteger inputCount = keys.count;
for (NSInteger i = 0; i < inputCount; i++) {
NSString *key = keys[i];