Login
Discover
Waves
Decks
Plus
Login
Signup
Boris Ding
@borisding1994
25
An Entropy Slayer's Thoughts on Design, Code and the Poetic Life.
Followers
9
Following
0
Resource Credits
Available
Used
Location
Digital Nomad
Website
https://twitter.com/borisding1994
Created
April 22, 2018
RSS Feed
Subscribe
Blog
Blog
Posts
Comments
Communities
Wallet
borisding1994
rails
2018-04-22 19:01
How to split CanCanCan ability into smaller files
Assume that the following roles exist in the system: developer hacker designer startup # app/models/ability.rb class Ability include CanCan::Ability def initialize(user) user ||= User.new if user.id.present?
$ 0.028
2
2
borisding1994
cn
2018-04-22 18:52
科学熬夜指南
如无必要,请勿熬夜 研究发现睡眠不足将导致代谢紊乱[1],许多代谢性疾病(包括体重增加、糖尿病、肥胖和心血管疾病)的危险因素于睡眠不足之间存在关系。而睡眠不足对大脑造成的损伤是无法通过补觉来修复的[2](长时间缺觉的小鼠大脑中神经元数目减少了25%。不过无论如何补肯定比不补要好)。
$ 0.024
7
2