Scala学习笔记

Scala

问题列表:

  • final case class SqlQueryResult (package anorm)

String.format(“%d%d”, 1: java.lang.Integer, 2: java.lang.Integer).

141440204.jpg (728×447)

  • trait
  • AnyRef AnyVal
  • 运算符重载,省略分号和点
  • 赋值得到Unit类型
  • java.lang.XX和scala.xx基本类型会导入,但是import会覆盖Object类型
  • _下划线的各种用法: http://my.oschina.net/leejun2005/blog/405305
  • val 和 def 的区别 – call by value / call by name :http://www.jianshu.com/p/93eefcb61d4f
  • scala implicit argument (context)

http://blog.javachen.com/2015/04/20/basic-of-scala.html

https://twitter.github.io/effectivescala/index-cn.html

http://www.oschina.net/code/snippet_91557_1056

http://developer.51cto.com/art/201009/226171_all.htm

http://blog.csdn.net/ssjssh/article/details/12126477

http://www.hawstein.com/posts/databricks-scala-guide.html

https://twitter.github.io/scala_school/zh_cn/basics.html

https://issues.scala-lang.org/browse/SI-2802

https://github.com/shekhargulati/day30-play-framework-demo/blob/master/app/controllers/StoryController.java

https://segmentfault.com/a/1190000000374033

http://www.scala-china.net/discuz/forum.php?mod=viewthread&tid=169314&extra=page%3D2 系列

https://www.jetbrains.com/idea/help/getting-started-with-play-2-x.html

http://shenbai.iteye.com/blog/1491550

wx.qq.com

api filter: webwxsync?sid=xxxx

myid: @4a05e4dafa9b88f1fe17383defe74cbc
jingling: @81519bacfd1a65b476a9521b3b3a0ea7

{
“BaseResponse”: {
“Ret”: 0,
“ErrMsg”: “”
}
,
“AddMsgCount”: 1,
“AddMsgList”: [{
"MsgId": "3495732429427793645",
"FromUserName": "@81519bacfd1a65b476a9521b3b3a0ea7",
"ToUserName": "@4a05e4dafa9b88f1fe17383defe74cbc",
"MsgType": 1,
"Content": "啊…",
"Status": 3,
"ImgStatus": 1,
"CreateTime": 1451911333,
"VoiceLength": 0,
"PlayLength": 0,
"FileName": "",
"FileSize": "",
"MediaId": "",
"Url": "",
"AppMsgType": 0,
"StatusNotifyCode": 0,
"StatusNotifyUserName": "",
"RecommendInfo": {
"UserName": "",
"NickName": "",
"QQNum": 0,
"Province": "",
"City": "",
"Content": "",
"Signature": "",
"Alias": "",
"Scene": 0,
"VerifyFlag": 0,
"AttrStatus": 0,
"Sex": 0,
"Ticket": "",
"OpCode": 0
}
,
"ForwardFlag": 0,
"AppInfo": {
"AppID": "",
"Type": 0
}
,
"HasProductId": 0,
"Ticket": "",
"ImgHeight": 0,
"ImgWidth": 0,
"SubMsgType": 0,
"NewMsgId": 3495732429427793645
}
],
“ModContactCount”: 0,
“ModContactList”: [],
“DelContactCount”: 0,
“DelContactList”: [],
“ModChatRoomMemberCount”: 0,
“ModChatRoomMemberList”: [],
“Profile”: {
“BitFlag”: 0,
“UserName”: {
“Buff”: “”
}
,
“NickName”: {
“Buff”: “”
}
,
“BindUin”: 0,
“BindEmail”: {
“Buff”: “”
}
,
“BindMobile”: {
“Buff”: “”
}
,
“Status”: 0,
“Sex”: 0,
“PersonalCard”: 0,
“Alias”: “”,
“HeadImgUpdateFlag”: 0,
“HeadImgUrl”: “”,
“Signature”: “”
}
,
“ContinueFlag”: 0,
“SyncKey”: {
“Count”: 7,
“List”: [{
"Key": 1,
"Val": 643617330
}
,{
"Key": 2,
"Val": 643618329
}
,{
"Key": 3,
"Val": 643618275
}
,{
"Key": 11,
"Val": 643617889
}
,{
"Key": 13,
"Val": 643555148
}
,{
"Key": 201,
"Val": 1451911333
}
,{
"Key": 1000,
"Val": 1451905224
}
]
}
,
“SKey”: “”
}

LinkIt One GPS

http://www.gonmad.co.uk/nmea.php

NMEA数据格式

(1)定位UTC时间:05时09分01秒
(2)纬度(格式ddmm.mmmm:即dd度,mm.mmmm分);
(3)N/S(北纬或南纬):北纬39度31.4449分;
(4)经度(格式dddmm.mmmm:即ddd度,mm.mmmm分);

full_gps

LGPS loop
$GPGGA,000003.000,8960.0000,N,00000.0000,E,0,0,,137.0,M,13.0,M,,*40
Continue reading

arduino internal PROGMEM wav player

http://highlowtech.org/?p=1963

http://www.elecfreaks.com/7440.html

http://www.geek-workshop.com/thread-3499-1-1.html

您好:
   提供给你们一个码库,要求更新!!
1、电视机
  1.1: 品牌:西湖数源 SOYEA/SY066-1
  1.2:红外协议:标准(NEC/6122)第二帧是尾码
  1.3:   键定义(16进度/hex)
               所有键用户码相同:4877H
               POWER:    数据码:41BEH
                 CH+:       数据码:00FFH
     CH–:       数据码:01FEH
                  VOL+:     数据码:02FDH
                  VOL–:     数据码:03FCH
                  后退:       数据码:1CE3H
                  菜单:       数据码:07F8H
                  静音:    数据码:42BDH
                  信号源: 数据码:46B9H


                    No1:       数据码: 11EEH
                     No2:       数据码:12ED H
                     No3:       数据码:13EC H
                    No4:       数据码:14EB H
                   No5:       数据码:15EA H
                  No6:       数据码:16E9 H
                  No7:       数据码:17E8 H
                 No8:       数据码:18E7 H
                No9:       数据码:19E6 H
                No0:       数据码:10EF H