01 2016 档案

摘要:0x01 idea https://www.tumblr.com/dashboard 阅读全文
posted @ 2016-01-31 20:37 Greasy_Giant 阅读(280) 评论(0) 推荐(0)
摘要:http://my.oschina.net/deathdealer/blog/208919 阅读全文
posted @ 2016-01-25 14:35 Greasy_Giant 阅读(566) 评论(0) 推荐(0)
摘要:有时候我们在CSS布局的时候需要实现两栏布局,且其中一栏的宽度不固定。据我的经验,有以下几种方法:inline-block首先两个元素不跨行,又要可以设置宽高,当然是inline-block,但是用此方法有个非常大的缺陷,就是width属性不好设置js计算百分比计算calc属性Float + ove... 阅读全文
posted @ 2016-01-25 10:29 Greasy_Giant 阅读(302) 评论(0) 推荐(0)
摘要:建立Server //server.jsvar io = require('socket.io')(80); var chat = io .of('/chat') //设定命名空间 .on('connection', function (socket) { socket.emit('a messag 阅读全文
posted @ 2016-01-24 23:09 Greasy_Giant 阅读(480) 评论(0) 推荐(0)
摘要:1 'use strict'; 2 /** 3 * db config 4 * @type {Object} 5 */ 6 module.exports = { 7 type: "mongo", 8 log_sql: true, 9 log_connect: tr... 阅读全文
posted @ 2016-01-23 21:54 Greasy_Giant 阅读(1765) 评论(0) 推荐(0)