Skip to content

Instantly share code, notes, and snippets.

View srv7's full-sized avatar
🇨🇳

struggle srv7

🇨🇳
  • Dalian, Liaoning, China
View GitHub Profile
@madordie
madordie / -[UIScrollViewPanGestureRecognizer _canTransferTrackingFromParentPagingScrollView].c
Last active September 16, 2020 06:26
探究UIScrollView的嵌套时手势作用在谁身上的问题
char __cdecl -[UIScrollViewPanGestureRecognizer _canTransferTrackingFromParentPagingScrollView](UIScrollViewPanGestureRecognizer *self, SEL a2)
{
double v2; // xmm0_8
double v3; // xmm1_8
UIScrollView *v4; // rax
void *v5; // rax
void *v6; // r13
void *v7; // rax
void *v8; // r14
UIView *v9; // rax
@kemchenj
kemchenj / CodeTextField.swift
Last active December 11, 2023 07:19
CodeTextField
import UIKit
class CodeTextField: UITextField, UITextFieldDelegate {
let codeLength: Int
var characterSize: CGSize
var characterSpacing: CGFloat
let textPreprocess: (String) -> String
let validCharacterSet: CharacterSet

前言

ACM相关的算法有很宽的广度和很高的深度,如果只是为了锻炼编程能力、辅助理解计算机的运行原理,不需要在每个方向都钻研清楚,而只梳理出一些基础的、常见的、有代表意义的,侧重训练下,就可以了。

以下是从网络上找到的算法分类,做了一些调整,加上注解。

算法分类

原文:https://www.cnblogs.com/zxj015/archive/2011/04/12/2740239.html

@anandabits
anandabits / swift-value-semantics-and-pure-functions.md
Created September 7, 2017 19:17
Value semantics and pure functions: referential transparency for Swift
/// Every view interacting with a `SayHelloViewModel` instance can conform to this.
protocol SayHelloViewModelBindable {
var disposeBag: DisposeBag? { get }
func bind(to viewModel: SayHelloViewModel)
}
/// TableViewCells
final class TextFieldCell: UITableViewCell, SayHelloViewModelBindable {
@IBOutlet weak var nameTextField: UITextField!
var disposeBag: DisposeBag?
@PurpleBooth
PurpleBooth / README-Template.md
Last active March 24, 2024 02:11
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@jacobbubu
jacobbubu / ioslocaleidentifiers.csv
Created February 15, 2012 14:41
iOS Locale Identifiers
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)