Skip to content

Instantly share code, notes, and snippets.

View FrizzleFur's full-sized avatar
🎨

MichaelMao FrizzleFur

🎨
View GitHub Profile
@FrizzleFur
FrizzleFur / agent loop
Created March 11, 2025 03:06 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@FrizzleFur
FrizzleFur / ForceEnablingXcodeLLM.md
Created January 8, 2025 23:56 — forked from unixzii/ForceEnablingXcodeLLM.md
A guide to force enabling Xcode LLM feature on China-SKU Macs.

Introduction

Apple restricted the access to Xcode LLM (Predictive code completion) feature on China models of Mac. This guide provides a way to bypass that restriction. It's verified on macOS 15.0 Beta (24A5264n), but there is no guarentee that it will always work on later macOS versions.

Prerequisites

  • Xcode is installed and run at least once.
  • SIP debugging restrictions are disabled (via csrutil enable --without debug command in recovery mode).

Disclaimer

@FrizzleFur
FrizzleFur / README.md
Created December 15, 2021 02:12 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@FrizzleFur
FrizzleFur / FlutterWidgetKeyDemo.dart
Last active May 29, 2022 04:12
A example for Flutter Key illustration
import 'package:flutter/material.dart';
import 'dart:math';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
@FrizzleFur
FrizzleFur / DebuggingOverlay.m
Created January 17, 2020 08:46 — forked from ian-mcdowell/DebuggingOverlay.m
UIDebuggingInformationOverlay for iOS 10, 11, and 12
#import <objc/runtime.h>
@interface DebuggingOverlay: NSObject
@end
@implementation DebuggingOverlay
+ (void)toggleOverlay {
id debugInfoClass = NSClassFromString(@"UIDebuggingInformationOverlay");
//添加,添加UIDebuggingInformationOverlay,在AppDelegate.m中的didFinishLaunchingWithOptions中写入
//UIDebuggingInformationOverlay
//双指同时点击状态栏显示
Class overlay = NSClassFromString(@"UIDebuggingInformationOverlay");
[[overlay class] performSelector:NSSelectorFromString(@"prepareDebuggingOverlay")];
// 直接显示
//    UIWindow *overlayWindow =  (UIWindow *)[[overlay class] performSelector:NSSelectorFromString(@"overlay")];
// [overlayWindow performSelector:NSSelectorFromString(@"toggleVisibility")];
```objc
//控制文本的基线位置
//label.adjustsFontSizeToFitWidth = YES;时有效 自适应大小要有效 label.numberOfLines为1
//文本最上端与Label中线对齐,默认值
label.baselineAdjustment = UIBaselineAdjustmentAlignBaselines;
//文本中线与Label中线对齐
label.baselineAdjustment = UIBaselineAdjustmentAlignCenters;
//文本最底端与Label中线对齐
@FrizzleFur
FrizzleFur / Block_Retain_Cycle
Last active July 15, 2020 06:42
Block循环引用
```objc
typedef void(^blk_t)(void);
@interface Person : NSObject
{
blk_t blk_;
}
@property (nonatomic, weak) NSArray *array;
@end
@FrizzleFur
FrizzleFur / NSString.md
Last active March 24, 2018 02:55
iOS/Objective-C字符串NSString操作总结 From http://blog.csdn.net/x_topfan/article/details/9044925

NSString为不可变字符串,赋值后没有Cocoa函数可以对其做任何改变

1、声明并初始化一个字符串

NSString * string = @”Hello”;

2、判断两个字符串是否相等,返回值为YES或NO

[string1 isEqualToString:string2];