这篇文章曾经对我理解垃圾回收有很大帮助,比喻通俗易懂。
:plus1:
#36 楼 @xiaopengyou9 下周二有活动,等邀请好讲师就发帖。
敬请关注。
:plus1:
:plus1:
买买买
:plus1:
这个项目很有意思,哈哈。
:plus1:
华顺,你的设计工具用的是不是 sketch?
:plus1:
departments 增加一个字段用于缓存 gongdan_counter, gongdan_total_durations
使用异步任务和定时脚本更新这个 gongdan_counter, gongdan_total_durations
使用异步任务和定时脚本更新这个统计表
Gongdan.where(:flag =>2).group("department").select("count(*) as flag")
很多用户用手机刷论坛,看图片的文字会非常吃力。
楼主如果把图片换成文本的 code,就更赞了。
markdown 代码排版格式
```ruby
puts 1
puts 2
puts 3
```
帮你排个版
list 中有段落时,要缩进四个空格。
代码请高亮
活到老学到老,拥抱新技术自己就不会过时。
幻想学好 Rails 后能够一劳永逸,最容易过时。
搜索提示的排序有两种策略:
根据 tag 数量:文件加此 tag 时,counter +1
根据 tag 被用户搜索的次数:用户每搜索一次,这个 tag 的 counter +1。
我在丁香园的时候,第二种策略用户体验更好一些。
Ruby Weekly 曾推荐过一篇关于 Data Ojbect 文章,能帮上楼主的忙吗?
http://brewhouse.io/2015/07/31/be-nice-to-others-and-your-future-self-use-data-objects.html
class Card
include Virtus.model
attribute :url, String
attribute :data, String
attribute :type, String
attribute :style, String
attribute :id, Integer
end
class Header
include Virtus.model
attribute :title, String
attribute :menu, String
attribute :icon, String
end
class Template
include Virtus.model
attribute :menu, String
attribute :cards, Array[Card]
end
Card.new(card_params)
Header.new(head_params)
Template.new()
身体、家庭都是玻璃球,工作是弹力球,所以工作排到了第五位。
Pray
Study Bible
Some of you may be asking, “Why is God so important, even more than your family and yourself?”
Because God is our strength and refuge, an ever present help in trouble.
Some of you may be asking, “Why do you love yourself so much, even more than your wife, your work?
Because Health is foundation of everything. Without health, you are unable to take care your family, love your friends and make money.
Do housework for Angela (my wife)
Encourage her to exercise/study
Delicate moments with Angela
Chat with my Grandpa/Grandma, my father and mother every week.
reading
writing
learn how to code like a master
review my Anki flashcards
design/coding
Prepare lunch for Sunday
Study bible for cell group leading
Communicate with members in cell group
Social activities
Online SNS tools, such as WeChat moments, Weibo, Zhihu and so on.
技术工作只是一部分,还要很多额外的工作还包括:
如果想让自己的邮件不进垃圾箱,最佳实践就是:不发垃圾邮件。
刚起步那段时间学习曲线陡峭,速度总是慢的,日积月累就越来越快了。楼主不要灰心,加油。
可以用动物名(或魔戒人物)作为机器的名字,团队内部沟通起来很方便,也很有趣。
这是 Vincent 教给我的,哈哈。
:plus1:
楼主有没有订阅 Ruby Weekly?里面有不少值得翻译的好文章。
@nightire 很喜欢你这种认真回答的风格,每篇都可以单独成为一篇精华帖。
请仔细排排版,不知道你在说什么