class Rational(n: Int, d: Int) { require(d != 0)
override def toString = n +"/"+ d}The require method takes one boolean
parameter. If the passed val.....
分类:
其他好文 时间:
2014-05-16 09:01:12
阅读次数:
272
不了解或不會Action在play framework很難再深入下去, 這是http
request的點以下這段代碼困擾我很久, 如今我才剛了解Action { implicit request => Ok("Got request ["
+ request + "]")}原文這麼說It is o....
分类:
其他好文 时间:
2014-05-16 07:52:45
阅读次数:
216
今天上英文課, 因為我想記住這兩個單字curly braces &
parenthesis你會看到一些代碼中curly braces & parenthesis是可以替換的?You may replace
parenthesis with curly braces if, and only if, ...
分类:
其他好文 时间:
2014-05-16 07:27:23
阅读次数:
257
75 份速查表,由 vikas
收集整理,包括:jQuery、HTML、HTML5、CSS、CSS3、JavaScript、Photoshop、git、Linux、Java、Perl、PHP、Python、Ruby、Ruby
on Rails、Scala、C#、SQLite、C++、C语言、Ubun...
分类:
其他好文 时间:
2014-05-15 15:29:11
阅读次数:
768
#include
using namespace std;
class Animal
{
public:
Animal() {}
void eat()
{
cout << "eat\n";
}
protected:
void play()
{
cout << "play\n";
}...
分类:
其他好文 时间:
2014-05-15 06:21:51
阅读次数:
234
接触了Spark也快有半年了,版本从0.8.0到现在的1.0.0SNAPSHOT,从头到尾被spark这个优秀的框架深深吸引,也为scala的优雅所折服。4.19日“2014 中国Spark技术峰会”召开,可以看出随着Spark技术的完善,越来越多的企业已经开始使用或开始关注Spark的发展了。回顾学习过程,觉得很有必要整理一份学习路线,对所学的内容加以沉淀,同时也为同行作为参考。因为Spark1...
分类:
其他好文 时间:
2014-05-15 06:07:33
阅读次数:
357
#include
using namespace std;
class Animal //动物类
{
public:
Animal() {}
void eat(){
cout << "eat\n";
}
protected:
void play()
{
cout << "play\n";
...
分类:
其他好文 时间:
2014-05-15 06:02:54
阅读次数:
360
引言
OK.时间很快又过去了一周,第一周有五一假期所以感觉时间绰绰有余,这周中间没有假期只能靠晚上加周末的时间来消化,其实还是有点紧张呢!后来发现每堂课的视频还有对应的课件(Slide)、字幕(subtitles)可以下载,这样下载视频学习和在线学习就只差课程中间的Exercise了
Week 2主要讲函数,函数在Scala里是first-class citizen,可以在任意域内出现,这门课...
分类:
其他好文 时间:
2014-05-15 05:24:10
阅读次数:
351
链接: http://soj.me/1732
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description:
Alice is a beautiful and clever girl. Bob would like to play with Alice.
One day, Alice got a very ...
分类:
其他好文 时间:
2014-05-15 03:20:59
阅读次数:
383
Apps that play audible content to the user while in
the background, such as a music player app (音频,如音乐播放)Apps that keep users
informed of their locati...
分类:
移动开发 时间:
2014-05-13 10:54:43
阅读次数:
441