2016-06-13

阅读

使用 Three.js 的 3D 制作动画场景:飞行者

http://tympanus.net/codrops/2016/04/26/the-aviator-animating-basic-3d-scene-threejs/

深入解读JavaScript面向对象编程实践

聚沙

-webkit-text-stroke

复合属性。设置或检索对象中的文字描边的宽度和颜色。该属性由 -webkit-text-stroke-width-webkit-text-stroke-color 两个子属性组成。

http://ued.ctrip.com/webkitcss/prop/text-stroke.html

经典三栏布局

1
2
3
<div id="left">left </div>
<div id="right">right</div>
<div id="main">mian</div>

利用浮动原理,左右定宽度分别进行左浮动和右浮动

中间列一定要放在左右两列的后面

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#left, #right {
    float: left;
    width: 220px;
    height: 200px;
    background: orange;
}

#right {
    float: right;
}

#main {
    margin: 0 220px;
    background: darkcyan;
    height: 200px;
}

http://www.w3cplus.com/blog/104.html

http://www.zhangxinxu.com/wordpress/2009/11/%E6%88%91%E7%86%9F%E7%9F%A5%E7%9A%84%E4%B8%89%E7%A7%8D%E4%B8%89%E6%A0%8F%E7%BD%91%E9%A1%B5%E5%AE%BD%E5%BA%A6%E8%87%AA%E9%80%82%E5%BA%94%E5%B8%83%E5%B1%80%E6%96%B9%E6%B3%95/

The mongo Shell basic

To display the database you are using, type db:

1
db

The operation should return test, which is the default database. To switch databases, issue the use helper, as in the following example:

1
use <database>

If the mongo shell does not accept the name of the collection, for instance if the name contains a space, hyphen, or starts with a number, you can use an alternate syntax to refer to the collection, as in the following:

1
2
3
db["3test"].find()

db.getCollection("3test").find()

MORE

Comments