10 2022 档案

摘要:/** * 版权所有 2022 涂聚文有限公司 * 许可信息查看: * 描述: * * 历史版本: JDK 17.01 * 2022-09-12 创建者 geovindu * 2022-09-12 添加 Lambda * 2022-09-12 修改:date * 接口类 * 2022-09-12 修 阅读全文
posted @ 2022-10-31 23:23 ®Geovin Du Dream Park™ 阅读(60) 评论(0) 推荐(0) 编辑
摘要:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebMethodAjaxdemo.aspx.cs" Inherits="DuFullCalendar.WebMethodAjaxdemo" %> <!doctype html> <h 阅读全文
posted @ 2022-10-31 22:21 ®Geovin Du Dream Park™ 阅读(33) 评论(0) 推荐(0) 编辑
摘要:/** * 版权所有 2022 涂聚文有限公司 * 许可信息查看: * 描述: * * 历史版本: JDK 17.01 * 2022-09-12 创建者 geovindu * 2022-09-12 添加 Lambda * 2022-09-12 修改:date * 接口类 * 2022-09-12 修 阅读全文
posted @ 2022-10-30 18:51 ®Geovin Du Dream Park™ 阅读(95) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GeovinduDu { [AttributeU 阅读全文
posted @ 2022-10-29 21:36 ®Geovin Du Dream Park™ 阅读(30) 评论(0) 推荐(0) 编辑
摘要:Single Responsibility Principle SOLID Design Patterns SOLID is an acronym for five principles of architecture.S – Single Responsibility PrincipleO – O 阅读全文
posted @ 2022-10-28 22:30 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:GeovinDuMemento.py # 备忘录模式 Memento Pattern GeovinDuMemento.py # class Memento: def __init__(self, value): self.state = value def SetState(self, value) 阅读全文
posted @ 2022-10-27 22:28 ®Geovin Du Dream Park™ 阅读(63) 评论(0) 推荐(0) 编辑
摘要:GeovinDuCommand.py # 命令模式 Command Pattern GeovinDuCommand.py # Web Browser: class WebBrowser(object): def __init__(self): self.bookmarks = [] self.cur 阅读全文
posted @ 2022-10-27 22:13 ®Geovin Du Dream Park™ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:GeovinDuState.py #状态模式 State Pattern class ComputerState(object): name = "state" allowed = [] def switch(self, state): """ Switch to new state """ if 阅读全文
posted @ 2022-10-26 23:43 ®Geovin Du Dream Park™ 阅读(20) 评论(0) 推荐(0) 编辑
摘要:GeovinDuTemplate.py # 模板方法模式 Template Method Pattern def get_text(): return "text 文件" """ method to get the xml version of file""" def get_xml(): retu 阅读全文
posted @ 2022-10-26 22:49 ®Geovin Du Dream Park™ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:GeovinDuVisitor.py # 访问者模式 Visitor Pattern GeovinDuVistitor.py class Courses_At_GFG: def accept(self, visitor): visitor.visit(self) def teaching(self, 阅读全文
posted @ 2022-10-25 23:10 ®Geovin Du Dream Park™ 阅读(20) 评论(0) 推荐(0) 编辑
摘要:GeovinDuStrategy.py # 策略模式 Strategy Pattern Types of trading strategies: class RiskyTradingStrategy(object): def MakeTrades(self): print("进行高风险交易!") c 阅读全文
posted @ 2022-10-25 21:54 ®Geovin Du Dream Park™ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:GeovinDuObserver.py # 观察者模式 Observer Pattern # The Observer class that recieves updates from the ticker on a specific symbol: class TickerObserver(obj 阅读全文
posted @ 2022-10-24 22:05 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:DuMediator.py # 中介者模式 Mediator Pattern import sys # ParticipantReference: class User(object): def __init__(self, med, name): self.mediator = med self. 阅读全文
posted @ 2022-10-24 06:42 ®Geovin Du Dream Park™ 阅读(19) 评论(0) 推荐(0) 编辑
摘要:DuIterator.py # 迭代器模式 Iterator Pattern # Doubly Linked List class Node(object): def __init__(self, value, nextNode, prevNode): self.value = value self 阅读全文
posted @ 2022-10-23 23:49 ®Geovin Du Dream Park™ 阅读(26) 评论(0) 推荐(0) 编辑
摘要:DuChain.py # 责任链模式 Chain of Responsibility import enum # Item Types: # An enum we'll attach to every game object to specify type: # Requires Python 3. 阅读全文
posted @ 2022-10-23 08:22 ®Geovin Du Dream Park™ 阅读(28) 评论(0) 推荐(0) 编辑
摘要:DuProxy.py # 代理模式 Proxy Pattern from abc import ABCMeta, abstractmethod import abc import random class ISubject(metaclass=ABCMeta): "An interface impl 阅读全文
posted @ 2022-10-22 23:14 ®Geovin Du Dream Park™ 阅读(13) 评论(0) 推荐(0) 编辑
摘要:from: Open Source QRCode Library - CodeProject https://www.codeproject.com/articles/20574/open-source-qrcode-library QRCodeEncoder.cs edit using Syste 阅读全文
posted @ 2022-10-22 13:13 ®Geovin Du Dream Park™ 阅读(57) 评论(0) 推荐(0) 编辑
摘要:DuFlyweight.py # 享元模式 Flyweight Pattern geovindu,Geovin Du,涂聚文 import time class Arrow: def __init__(self, x, y, z, velocity): self.x = x self.y = y s 阅读全文
posted @ 2022-10-22 11:32 ®Geovin Du Dream Park™ 阅读(19) 评论(0) 推荐(0) 编辑
摘要:DuFacade.py import os import re import threading # 外观模式 Facade Pattern class _IgnitionSystem(object): @staticmethod def produce_spark(): return True c 阅读全文
posted @ 2022-10-22 07:07 ®Geovin Du Dream Park™ 阅读(19) 评论(0) 推荐(0) 编辑
摘要:DuDecorator.py # 装饰模式 Decorator Pattern import six # https://pypi.org/project/six/ from abc import ABCMeta @six.add_metaclass(ABCMeta) class Abstract_ 阅读全文
posted @ 2022-10-21 22:40 ®Geovin Du Dream Park™ 阅读(8) 评论(0) 推荐(0) 编辑
摘要:DuComposite.py # 组合模式 Composite Pattern from __future__ import annotations from abc import ABC, abstractmethod from typing import List class Component 阅读全文
posted @ 2022-10-21 22:21 ®Geovin Du Dream Park™ 阅读(17) 评论(0) 推荐(0) 编辑
摘要:DuSingleton.py import httplib2 # https://pypi.org/project/httplib2/ import os import re import threading import urllib import urllib.request from urll 阅读全文
posted @ 2022-10-20 22:42 ®Geovin Du Dream Park™ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:DuPrototype.py import copy ## 原型模式 Prototype Pattern DuPrototype。py class SelfReferencingEntity: def __init__(self): self.parent = None def set_parent 阅读全文
posted @ 2022-10-20 21:50 ®Geovin Du Dream Park™ 阅读(26) 评论(0) 推荐(0) 编辑
摘要:DuBridge.py # 桥接模式 Bridge Pattern # DuBridyge.py editor: geovindu, Geovin Du from __future__ import annotations from abc import ABC, abstractmethod cl 阅读全文
posted @ 2022-10-19 22:30 ®Geovin Du Dream Park™ 阅读(28) 评论(0) 推荐(0) 编辑
摘要:DuBuilder.py # 生成器模式 Builder Pattern from __future__ import annotations from abc import ABC, abstractmethod from typing import Any class Builder(ABC): 阅读全文
posted @ 2022-10-19 17:57 ®Geovin Du Dream Park™ 阅读(6) 评论(0) 推荐(0) 编辑
摘要:AbstractFactory.py ## 抽象工厂模式 Abstract Factory Pattern from __future__ import annotations from abc import ABC, abstractmethod class AbstractFactory(ABC 阅读全文
posted @ 2022-10-18 21:19 ®Geovin Du Dream Park™ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:Adapte.py ## 适配器模式 Adapte Pattern geovindu, Geovin Du eidt class Target: """ The Target defines the domain-specific interface used by the client code. 阅读全文
posted @ 2022-10-18 21:10 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要://win 11 22H2 64位电脑测试 c# 10 .net core 6 Console.WriteLine("Hello from a Top Level Program!"); Console.WriteLine(Environment.OSVersion.VersionString); 阅读全文
posted @ 2022-10-17 21:03 ®Geovin Du Dream Park™ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:/** * 版权所有 2022 涂聚文有限公司 * 许可信息查看: * 描述: * 空对象模式 null object Pattern * 历史版本: JDK 14.02 * 2022-09-12 创建者 geovindu * 2022-09-12 添加 Lambda * 2022-09-12 修改 阅读全文
posted @ 2022-10-16 22:21 ®Geovin Du Dream Park™ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:var stop = function() { var stream = video.srcObject; var tracks = stream.getTracks(); for (var i = 0; i < tracks.length; i++) { var track = tracks[i] 阅读全文
posted @ 2022-10-16 00:03 ®Geovin Du Dream Park™ 阅读(33) 评论(0) 推荐(0) 编辑
摘要:/** * 版权所有 2022 涂聚文有限公司 * 许可信息查看: * 描述: * Core Java, Volume I: Fundamentals, Twelfth Edition by Cay S.Horstamnn * Core Java, Volume II: Advanced Featu 阅读全文
posted @ 2022-10-14 23:49 ®Geovin Du Dream Park™ 阅读(39) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 空对象模式 null object pattern /// geovin,Geovin Du eidt /// </summary> interface IVehicle { void Travel(); } /// <summary> /// Bus class 阅读全文
posted @ 2022-10-13 23:02 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 简单工厂模式 Simple Factory Pattern /// geovindu,Geovin Du edit /// 动物 /// </summary> public interface IAnimal { /// <summary> /// /// </s 阅读全文
posted @ 2022-10-12 23:19 ®Geovin Du Dream Park™ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 解释器模式 Interpreter Pattern /// geovindu, Geovin Du edit /// </summary> interface Employee { /// <summary> /// 是否解释 /// </summary> /// 阅读全文
posted @ 2022-10-12 23:02 ®Geovin Du Dream Park™ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:/// <summary> ///责任链模式 Chain of Responsibility Pattern 亦称: 职责链模式、命令链、CoR、Chain of Command、Chain of Responsibility /// geovindu,Geovin Du edit /// </su 阅读全文
posted @ 2022-10-12 06:24 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 中介者模式 Mediator Pattern 亦称: 调解人、控制器、Intermediary、Controller、Mediator /// geovindu,Geovin Du, Edit /// </summary> interface IMediator 阅读全文
posted @ 2022-10-11 21:35 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 状态模式 State Pattern /// geovindu, Geovin Du edit /// </summary> interface IPossibleStates { //Users can press any of these buttons-On 阅读全文
posted @ 2022-10-10 23:07 ®Geovin Du Dream Park™ 阅读(24) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 备忘录模式 Memento Pattern 亦称: 快照、Snapshot、Memento /// geovindu,Geovin Du edit /// </summary> class Originator { /// <summary> /// 状态 /// 阅读全文
posted @ 2022-10-10 21:57 ®Geovin Du Dream Park™ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#region Iterator /// <summary> /// 迭代器模式 Iterator Pattern /// geovindu,Geovin Du edit /// </summary> public interface IIterator { /// <summary> /// Re 阅读全文
posted @ 2022-10-10 20:31 ®Geovin Du Dream Park™ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Receiver Class /// 命令模式 Command Pattern 亦称: 动作、事务、Action、Transaction、Command /// geovindu,Geovin Du eidt /// </summary> public class 阅读全文
posted @ 2022-10-09 22:09 ®Geovin Du Dream Park™ 阅读(30) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Basic skeleton of actions/steps /// 基础工程 /// 模板方法模式Template Method Pattern /// geovindu,Geovin Du eidt /// </summary> public abstrac 阅读全文
posted @ 2022-10-09 20:58 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 车辆行为模型 /// Abstract Behavior /// 策略模式 Strategy Pattern /// geovindu, Geovin Du edit /// /// </summary> public abstract class Vehicle 阅读全文
posted @ 2022-10-08 23:34 ®Geovin Du Dream Park™ 阅读(20) 评论(0) 推荐(0) 编辑
摘要:/// <summary> ///观察者模式 Observer Pattern 亦称: 事件订阅者、监听者、Event-Subscriber、Listener、Observe /// geovindu,Geovin Du eidt /// /// </summary> interface IObse 阅读全文
posted @ 2022-10-08 22:34 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 访问者模式 Visitor Pattern /// geovindu,Geovin Du eidt /// </summary> interface IEmployee { /// <summary> /// To set an employee name /// 阅读全文
posted @ 2022-10-07 22:57 ®Geovin Du Dream Park™ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 单例模式 Singleton Pattern /// geovindu,Geovin Du edit /// </summary> public class Database { /// <summary> /// /// </summary> private D 阅读全文
posted @ 2022-10-07 14:04 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:/// <summary> ///组合模式 Composite Pattern /// geovindu,Geovin Du edit /// /// </summary> interface IEmployee { /// <summary> /// To set an employee name 阅读全文
posted @ 2022-10-06 16:39 ®Geovin Du Dream Park™ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// The 'Flyweight' interface ///享元模式 Flyweight Pattern /// geovindu,Geovin Du edit /// 车辆 /// </summary> interface IVehicle { /* * Clie 阅读全文
posted @ 2022-10-06 15:43 ®Geovin Du Dream Park™ 阅读(21) 评论(0) 推荐(0) 编辑
摘要:# Python 3.9 # 工厂方法模式 Factory Method Pattern from __future__ import annotations from abc import ABC, abstractmethod import pygame # pip install pygame 阅读全文
posted @ 2022-10-06 13:37 ®Geovin Du Dream Park™ 阅读(20) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 外观模式Facade Pattern /// geovindu,Geovin Du eidt /// 机器人颜色 /// </summary> public class RobotColor { /// <summary> /// 颜色名称 /// </summa 阅读全文
posted @ 2022-10-05 23:37 ®Geovin Du Dream Park™ 阅读(45) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// 适配器模式 Adapter PatternA /// geovindu, Geovin Du edit /// </summary> interface IRectangle { void AboutMe(); } /// <summary> /// /// </ 阅读全文
posted @ 2022-10-05 16:35 ®Geovin Du Dream Park™ 阅读(25) 评论(0) 推荐(0) 编辑
摘要:/// <summary> ///装饰模式 Decorator Pattern ///geovindu,Geovin Du eidt /// /// </summary> abstract class AbstractHome { /// <summary> /// /// </summary> p 阅读全文
posted @ 2022-10-05 14:23 ®Geovin Du Dream Park™ 阅读(28) 评论(0) 推荐(0) 编辑
摘要:/** * 版权所有 2022 涂聚文有限公司 * 许可信息查看: * 描述: * Core Java, Volume I: Fundamentals, Twelfth Edition by Cay S.Horstamnn * Core Java, Volume II: Advanced Featu 阅读全文
posted @ 2022-10-04 22:05 ®Geovin Du Dream Park™ 阅读(47) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Abstract class Subject /// 代理模式 Proxy Pattern /// Structural Design Patterns /// geovindu, Geovin Du edit /// </summary> public abst 阅读全文
posted @ 2022-10-04 21:24 ®Geovin Du Dream Park™ 阅读(25) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Abstract Factory抽像工厂 /// geovindu,Geovin Du eidt /// </summary> public interface IShape { void Draw(); } /// <summary> /// /// </sum 阅读全文
posted @ 2022-10-04 17:19 ®Geovin Du Dream Park™ 阅读(23) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// geovindu, Geovin Du,涂聚文 Edit /// </summary> public class DuModel { private string name; private int price, quantity; /// <summary> / 阅读全文
posted @ 2022-10-04 13:41 ®Geovin Du Dream Park™ 阅读(172) 评论(0) 推荐(0) 编辑
摘要:#region Animal Hierarchy /* * Both the Dog and Tiger classes will * implement the IAnimal interface method. */ /// <summary> /// 工厂方法模式 Factory Method 阅读全文
posted @ 2022-10-04 12:16 ®Geovin Du Dream Park™ 阅读(24) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Car is a ConcreteBuilder /// 生成器 Builder Pattern /// geovindu eidit /// </summary> class Car : IBuilder { /// <summary> /// /// </su 阅读全文
posted @ 2022-10-03 22:45 ®Geovin Du Dream Park™ 阅读(18) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Prototype Pattern原型设计模式 /// </summary> public abstract class BasicCar { /// <summary> /// /// </summary> public int basePrice = 0, o 阅读全文
posted @ 2022-10-03 16:25 ®Geovin Du Dream Park™ 阅读(17) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Summary description for Employee. /// Visitor Pattern 访问者模式 ///20220918 /// geovindu,Geovin Du,涂聚文 /// </summary> public class Emplo 阅读全文
posted @ 2022-10-02 19:25 ®Geovin Du Dream Park™ 阅读(20) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// Summary description for Triangle. /// Template Method Pattern 模板方法模式 ///20220918 /// geovindu,Geovin Du,涂聚文 /// </summary> public ab 阅读全文
posted @ 2022-10-02 16:11 ®Geovin Du Dream Park™ 阅读(17) 评论(0) 推荐(0) 编辑
摘要:javascript: <script type="text/javascript"> console.log(navigator.userAgent) console.log(navigator.appVersion) console.log(navigator.platform) //Win10 阅读全文
posted @ 2022-10-02 15:10 ®Geovin Du Dream Park™ 阅读(100) 评论(0) 推荐(0) 编辑
摘要:/** * 版权所有 2022 涂聚文有限公司 * 许可信息查看: * 描述: * 中介者模式/调停者模式 Mediator Pattern * 历史版本: JDK 14.02 * 2022-09-12 创建者 geovindu * 2022-09-12 添加 Lambda * 2022-09-12 阅读全文
posted @ 2022-10-01 21:25 ®Geovin Du Dream Park™ 阅读(30) 评论(0) 推荐(0) 编辑
摘要:/** * 版权所有 2022 涂聚文有限公司 * 许可信息查看: * 描述: * 解释器模式 Interpreter Pattern * 历史版本: JDK 14.02 * 2022-09-12 创建者 geovindu * 2022-09-12 添加 Lambda * 2022-09-12 修改 阅读全文
posted @ 2022-10-01 18:14 ®Geovin Du Dream Park™ 阅读(24) 评论(0) 推荐(0) 编辑
摘要:/// <summary> /// A simple file handlng class /// Strategy Pattern 策略模式 ///20220918 /// geovindu,Geovin Du,涂聚文 /// </summary> public class csFile { pr 阅读全文
posted @ 2022-10-01 14:45 ®Geovin Du Dream Park™ 阅读(19) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示