1. No variable should hold a reference to a concrete class. 不要引用一个具体类。 如果你要创建和引用一个具体类,使用一个工厂来做。2 No class should derive from a concrete class. 不要继承具体类 ...
分类:
其他好文 时间:
2017-05-20 20:39:24
阅读次数:
271
腹部 abdomen 胸部 chest 臀部 buttock arse hip 肩部 shoulder 背部 back 肌肉 muscle 大腿 thigh 手掌 palm 脚踝 ankle 手肘 elbow 手指 finger 指甲 nail 脚趾 toe 头部 head 眼睛 eye 耳朵 ea ...
分类:
其他好文 时间:
2017-05-20 11:11:25
阅读次数:
132
.container{ margin:30px auto; /* How pronounced should the 3D effects be */ perspective: 500; -webkit-perspective: 500; -moz-perspe... ...
分类:
Web程序 时间:
2017-05-19 17:48:22
阅读次数:
225
背景 当我们在windows 上面运行docker container的时候,我们需要借助于模拟器(例如,Virtual box/Hyper V),她的目的主要是在我们的windows系统上面模拟出一个Linux环境来运行docker engine,从而在实现在windows机器上面跑docker. ...
AppDelegate.swift : <span style="font-size:24px;"><strong>// // AppDelegate.swift // SwiftHelloWord // // Created by jason on 14-6-5. // Copyright (c) ...
分类:
移动开发 时间:
2017-05-19 10:12:24
阅读次数:
223
本章翻译自Elasticsearch官方指南的Controlling Relevance一章。 忽略TF/IDF 有时我们不需要TF/IDF。我们想知道的只是一个特定的单词是否出现在了字段中。比如我们正在搜索度假酒店,希望它拥有的卖点越多越好: WiFi 花园(Garden) 泳池(Pool) 而关 ...
分类:
其他好文 时间:
2017-05-19 00:49:58
阅读次数:
317
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 可以分为递归解法 ...
分类:
其他好文 时间:
2017-05-19 00:00:02
阅读次数:
285
本章翻译自Elasticsearch官方指南的Controlling Relevance一章。 Lucene中的Practical Scoring Function 对于多词条查询(Multiterm Queries),Lucene使用的是布尔模型(Boolean Model),TF/IDF以及向量 ...
分类:
Web程序 时间:
2017-05-18 23:57:21
阅读次数:
315
component 中 数据为什么不能用 ? 因为组件会应用到很多地方,而 data:{}是对象,不用页面都共享了同一个对象,正确做法需要函数来实现: 错误提示:- Component template should contain exactly one root element. If you ...
分类:
其他好文 时间:
2017-05-18 20:50:46
阅读次数:
7314
DZY loves chessboard, and he enjoys playing with it. He has a chessboard of n rows and m columns. Some cells of the chessboard are bad, others are goo ...
分类:
其他好文 时间:
2017-05-18 15:44:03
阅读次数:
213