"\u{9956}"
=> "饖"
"饖".ord.to_s(16)
=> "9956"
最省心的办法加个 callback
after_commit do
# 同步 created_at 和 create_time, updated_at 和 updated_time
end
很赞啊,可惜时间没对上~
PING speedtest.singapore.linode.com (139.162.23.4): 56 data bytes
64 bytes from 139.162.23.4: icmp_seq=0 ttl=45 time=254.868 ms
64 bytes from 139.162.23.4: icmp_seq=1 ttl=45 time=254.482 ms
64 bytes from 139.162.23.4: icmp_seq=2 ttl=45 time=255.428 ms
Request timeout for icmp_seq 3
64 bytes from 139.162.23.4: icmp_seq=4 ttl=45 time=300.054 ms
64 bytes from 139.162.23.4: icmp_seq=5 ttl=45 time=299.067 ms
64 bytes from 139.162.23.4: icmp_seq=6 ttl=45 time=304.253 ms
64 bytes from 139.162.23.4: icmp_seq=7 ttl=45 time=300.353 ms
Request timeout for icmp_seq 8
64 bytes from 139.162.23.4: icmp_seq=9 ttl=45 time=252.483 ms
Request timeout for icmp_seq 10
Request timeout for icmp_seq 11
^C
--- speedtest.singapore.linode.com ping statistics ---
13 packets transmitted, 8 packets received, 38.5% packet loss
round-trip min/avg/max/stddev = 252.483/277.623/304.253/23.363 ms
杭州电信
先说 Grape 的好处:
你提到的问题:
B 站基佬前来报到~ 话说不是在招 PHP 么
做个 chrome 插件呗
#2 楼 @flowerwrong 估计是用来写游戏逻辑,干 lua 的活儿
config.assets.debug = false
class DataConfig < ActiveRecord::Base
SMS = %w{ 容联 云片 }
store :details, accessors: [:sms, :about, :phone, :desc], coder: JSON
scope :current_config, -> { first }
end
哈哈 今天也在看这个
DayOne
也有的,一般情况下用不到,常见做法参见楼上。
想了解 Rails 如何实现 VO,可以参考 中 9.11 Using Value Objects
功力尚浅,围观一下,随手贴个链接:https://gist.github.com/justinko/2838490
跟 PhoneGap
的区别是?
validate
最近也在看这本书,感觉超棒,貌似也不算太旧。
LZ 能推荐几本类似的书么 . 提前谢~
远程呗