摘要:mysql: select * from tutorials; # CREATE TABLE IF NOT EXISTS `tutorials` (`id` INTEGER NOT NULL auto_increment , `title` VARCHAR(255), `description` V
阅读全文
posted @ 2024-08-09 08:50
®Geovin Du Dream Park™
阅读(24)评论(0)推荐(0)
摘要:// geovindu /* (c) 2011-2015, Vladimir Agafonkin SunCalc is a JavaScript library for calculating sun/moon position and light phases. https://github.co
阅读全文
posted @ 2024-05-10 16:31
®Geovin Du Dream Park™
阅读(227)评论(0)推荐(0)
摘要:/** * Observer Pattern 观察者是一种行为设计模式, 允许一个对象将其状态的改变通知其他对象 * file: Observerts.ts * The Subject interface declares a set of methods for managing subscrib
阅读全文
posted @ 2023-10-12 18:16
®Geovin Du Dream Park™
阅读(13)评论(0)推荐(0)
摘要:/** * * Command Pattern 命令是一种行为设计模式, 它可将请求或简单操作转换为一个对象。 * file: Commandts.ts * The Command interface declares a method for executing a command. * */ i
阅读全文
posted @ 2023-10-12 13:17
®Geovin Du Dream Park™
阅读(10)评论(0)推荐(0)
摘要:/** * Template Method pattern 模版方法是一种行为设计模式, 它在基类中定义了一个算法的框架, 允许子类在不修改结构的情况下重写算法的特定步骤。 * file: Templatets.ts * The Abstract Class defines a template m
阅读全文
posted @ 2023-10-11 18:18
®Geovin Du Dream Park™
阅读(22)评论(0)推荐(0)
摘要:/** * State Pattern 状态是一种行为设计模式, 让你能在一个对象的内部状态变化时改变其行为。 * The Context defines the interface of interest to clients. It also maintains a * reference to
阅读全文
posted @ 2023-10-11 18:11
®Geovin Du Dream Park™
阅读(15)评论(0)推荐(0)
摘要:/** * Memento Pattern 备忘录是一种行为设计模式, 允许生成对象状态的快照并在以后将其还原。 * The Originator holds some important state that may change over time. It also * defines a me
阅读全文
posted @ 2023-10-11 18:02
®Geovin Du Dream Park™
阅读(21)评论(0)推荐(0)