Skip to content

Instantly share code, notes, and snippets.

View chj3737's full-sized avatar

Huijun Chen chj3737

View GitHub Profile

Disable Device Enrollment Program (DEP) notification on macOS Monterey.md

NB! command-R is replaced with holding the power button on M1 macs.

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

   b. Initial installation will run for approximately 1 hour, and reboot once

interface TargetInterface {
TargetObject operate();
}
class LegacyObject {
Object method();
}
class AdapterForLegacy implements TargetInterface {
LegacyObject legacy;
// 应该可以为接口或是抽象类
interface Component {
Object operate();
}
class ComponentImpl {
Object operate() { }
}
// 实现接口或是抽象类
class Car {
Engine engine;
Brake brake;
Window window;
start() {
engine.start();
}
break() {
class Observable {
void notifyObservers(Object context);
void addObserver(Observer observer);
void removeObserver(Observer observer);
// ... count,
}
interface Observer {
void update(Observable obj, Object context);
}

学习之道

人脑特点

思维模式

两种工作模式类似近光灯与远光灯

专注模式