2017-04-02 ruki
Links Homepage Documents This version provide safer xmake install and xmake uninstall. New features #65: Add set_default api for target to modify default build and install behavior Allows to run xmake command in project subdirectories, it will find the project root directory automatically Add add_rpathdirs for tar 继续阅读 »
2016-10-12 曹强
命令模式是最简单和优雅的模式之一,命令模式中的命令指的是一个执行某些特定事情的指令。命令模式最常见的应用场景是:有时候需要向某些对象发送请求,但是不知道请求的接收者是谁,也不知道被请求的操作是什么。此时希望用一种松耦合的方式来设计程序,使得请求发送者和请求接收者能够消除彼此之间的耦合关系。 菜单程序 假设要编写一个用户界面程序,该用户界面上至少有数十个button按钮,通过分析我们发现按下按钮之后会发生的一些事情是不变的,而具体会发生什么事情是可变的。 通过command对象的帮助,将来我们可以轻易改变这种关联。 废话不多说,上代码: //负责往按钮上面安装命令 var setCommand = function( b 继续阅读 »
2013-01-03 Klaus Ma
Selenium a powerful suite of tools for web testing, but it’s dependent on browser (Firefox, IE, Chrome); and those browser need a displayer. As a console/command geek, it’s intolerable. After several days investigation, I’d like to introduce PyVirtualDisplay to run Selenium in a console with Python. 继续阅读 »
2018-04-02 geekspeng
lsof -i:端口号 用于查看某一端口的占用情况 bash [root@node1 ~]# lsof -i:22 COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME sshd     6622 root    3u  IPv4  36215      0t0  TCP *:ssh (LISTEN) sshd     6622 root    4u  IPv6  36224      0t0  TCP *:ssh (LISTEN) sshd    31358 root    3u  IPv4 122192      0t0  TCP node1:ssh->192.168. 继续阅读 »
2016-11-18 YongHao Hu
go
命令行终端里,使用set -o vi, 用vim来操作终端的输入, 估计比终端要提供的emacs快捷键爽多了; 使用MacBook自不用说, 配合iterm2, jitouch, Alfred等 jitouch配合mac触摸板, 比鼠标好用n倍. 自定义单击,一手固定另一只手指轻拍, 左右拍等操作.我通常是One-Fix Left-Tap是浏览器的previous tab, right tab则是next tab, 还有配置了关标签页, 新开标签页的手势; 用Keyboard Maestro改键, ctrl+command+i是iterm, +c是chrome, +h是左窗口, +r是右窗口; 用paste软件记录所有剪贴板记录, 继续阅读 »
2016-08-01 AllanChan
今天想和大家分享的是命令模式。下面还和之前一样,先给出基本的定义。 命令模式(Command) 将一个请求封装为一个对象,从而使你可用不同的请求对客户进行参数化;对请求排队或纪录请求日志,以及支持可撤销的操作。 那么让我们简要的说一下命令模式的特点: 1. 它能比较容易地设计一个命令队列; 2. 在需要的情况下,可以较容易地将命令记入日志; 3. 允许接收请求的一方决定是否要否决请求; 4. 可以容易地实现对请求地撤销和重做; 5. 新的命令类不影响其他的类,因此增加新的命令类很容易; 6. 把请求一个操作的对象与知道怎么执行一个操作的对象分隔开; 继续阅读 »
2019-01-29 blademainer
作为开发者,截图是一个必备技能之一 more 最常规的或许就是登陆QQ,使用Ctrl + Command(Alt)+ A,简单粗暴。没错,使用QQ快捷键截图可能是那些年我们最常用的方式。当然,这种方式并没有过时,大家依然常用,方便,快捷,实用。 继续阅读 »
2015-12-30 litaotao
1. Pythonic Thinking 1.1 know which version of python you're using two major python version; multiple popular runtimes for python: cpython, jython, ironpython, pypy, etc; be sure that the command line for running python on your system is the version you want; prefer python 3 in your next project; 继续阅读 »
2000-02-22 ruki
content {:toc} Note: This documents is only a mirror, if you want to see newest documents please goto: http://xmake.io/#/plugins Plugin Development Introduction XMake supports the plugin module and we can develop ourself plugin module conveniently. We can run command xmake -h to look over some builtin plugins of xm 继续阅读 »
2014-08-16 Kun Ren
In pipeR 0.4 version, one of the new features is Pipe() function. The function basically creates a Pipe object that allows command chaining with $, and thus makes it easier to perform operations in pipeline without any external operator. 继续阅读 »