class MtwGame { public constructor() { } private static _instance: MtwGame; public static get Instance(): MtwGame { if (this._instance == null || this ...
分类:
其他好文 时间:
2018-10-27 11:51:06
阅读次数:
1738
1.node-webkit是什么? NW.js is an app runtime based on Chromium and node.js. You can write native apps in HTML and JavaScript with NW.js. Node-Webkit的运行条件 ...
分类:
Web程序 时间:
2018-10-26 19:43:12
阅读次数:
223
函数性能分析工具SyzyProf 我先开始介绍SyzyProf。这个工具可以捕获每个线程调用每个函数执行的时间,然后把结果生成一个KCacheGrind能够识别的数据格式文件,然后通过KCacheGrind的展示结果。你就可以知道函数哪个函数执行了次数最多,消耗的时间最多,哪个线程在读写文件,哪个线 ...
分类:
其他好文 时间:
2018-10-26 13:12:44
阅读次数:
197
public class ImageData { public string imageFilePath { get; set; } public string tempFilePath { get; set; } } ImageData data = new ImageData(); [HttpP... ...
分类:
Web程序 时间:
2018-10-26 00:49:29
阅读次数:
250
1.观察者模式 观察者模式(有时又被称为模型-视图(View)模式、源-收听者(Listener)模式或从属者模式)是软件设计模式的一种。在此种模式中,一个目标物件管理所有相依于它的观察者物件,并且在它本身的状态改变时主动发出通知。这通常透过呼叫各观察者所提供的方法来实现。此种模式通常被用来实现事件 ...
分类:
其他好文 时间:
2018-10-26 00:44:36
阅读次数:
139
打开cmd,输入 where python查询Python安装路径 进入Python安装路径中的Lib/site-packages文件夹中,添加 graphics.py 文件,将以下红色文本添加进graphics.py文件中即可 # graphics.py"""Simple object orien ...
分类:
编程语言 时间:
2018-10-25 19:29:37
阅读次数:
1465
Java语言在Graphics类提供绘制各种基本的几何图形的基础上,扩展Graphics类提供一个Graphics2D类,它拥用更强大的二维图形处理能力,提供、坐标转换、颜色管理以及文字布局等更精确的控制。绘图属性 Graphics2D定义了几种方法,用于添加或改变图形的状态属性。可以通过设定和修改 ...
分类:
编程语言 时间:
2018-10-18 13:13:57
阅读次数:
314
Mojo For Chromium Developers Overview This document contains the minimum amount of information needed for a developer to start using Mojo in Chromium. ...
分类:
其他好文 时间:
2018-10-16 22:11:57
阅读次数:
515
首先要知道需要安装哪个类型的显卡驱动,可以使用如下指令查看 sudo add-apt-repository ppa:graphics-drivers在#current那一栏中找到显卡驱动型号,使用的是1060显卡,下面会出现nvidia-387,1080是nvida-390,看完型号后按下enter ...
分类:
其他好文 时间:
2018-10-16 22:03:29
阅读次数:
343