ã¯ãã㫠人ã«ãã£ã¦æ§ã ãªæ¸ãæ¹ãã§ãã¦ãã¾ãã®ãScalaã æ¬è¨äºã§ã¯ãéä¹ãæ±ããfacé¢æ°ãä¾ã«ãããã¤ãã®èå³æ·±ãããã°ã©ãã³ã°ã¹ã¿ã¤ã«ãç´¹ä»ãã¾ãã 以ä¸ã®ã³ã¼ãã¯ãREPLã§:pasteãããã¨ã§ãç°¡åã«åä½ã確èªã§ãã¾ãã æç¶ãããã°ã©ãã³ã° ç ´å£çæä½ããããããªãç·ãããããã°ã©ãã³ã°ã¹ã¿ã¤ã«ã def fac(n: Int) = { var result = 1 for (i <- 1 to n) { result *= i } result } å帰ã§æ¸ãããéãï¼ã¯ãï¼ã§ãã æ®éã®å帰 åå¦è æ³£ããã®å帰ã¹ã¿ã¤ã«ã def fac(n: Int): Int = if (n == 0) 1 else n * fac(n - 1) // å帰å¼ã³åºãã®å¤å´ã« * ã«ããæ¼ç®ããã ãã®ããã«æ¸ãã¨ã¹ã¿ãã¯ãã©ãã©ãæ¶è²»ããã®ã§ãå¾è¿°ããæ«å°¾å帰ã使ã£ãã»ããããã§
AWSã®ãªã½ã¼ã¹æ§æãServerspecã®ããã«ãã¹ãã§ãã "awspec" ãã¤ããã¾ããã github.com ä¾ãã°EC2ã¤ã³ã¹ã¿ã³ã¹ã§ããã°ã以ä¸ã®ããã«æ¸ãã¾ãã describe ec2('my-ec2') do it { should exist } it { should be_running } it { should_not be_stopped } its(:instance_id) { should eq 'i-ec12345a' } its(:private_ip_address) { should eq '10.0.1.1' } it { should have_security_group('my-security-group-name') } it { should belong_to_vpc('my-vpc') } it { should belon
ROBA @ããããå¤ã«åºã @vjroba 誰ãè¦ã¦ãªãã ãããã©ããã°ã©ãã¼ãå¿ãçããã¸ãé¡ããè±èªãåå¼·ãã¦ä¸ãããå°ç²ãªã¸ã§ã¼ã¯ãé£ã°ããªãã¦ããããã©ãã³ã¼ãã®ä¸ã§æ£ããææ³ãæ£ããåèªã§å½åãåºæ¥ãç¨åº¦ã«ã¯åå¼·ãã¦ä¸ãããé©å½ã«åèªä¸¦ã¹ãã ãããã¡ã³ããã人ãæå³ãããããªãã¦é ãæ±ãã¾ãã 2015-08-06 06:30:37 ROBA @ããããå¤ã«åºã @vjroba ã¡ã½ããåãé©å½ãªããã°ã©ãã¼ãå¤ãã§ããã¡ã½ããã¯å½ä»¤ã§ãã®ã§ãå¿ ãå½ä»¤å½¢ã§æ¸ãã¦ãã ããï¼isãã¿ãããªã®ã¯é¤ãï¼ãä¸å¦ã§åå¼·ããã¨æãã¾ããå½ä»¤å½¢ã¯ä¸»èªãåãæã£ã¦æ´»ç¨ãªãã®åè©ã§å§ããæç« ã§ãããããæç« ã«ãªã£ã¦ãªã人ãå¤ãã§ããèªãã¾ãããåå¼ãã¦ä¸ããã 2015-08-06 06:38:24 ROBA @ããããå¤ã«åºã @vjroba åèªã並ã¹ãã ãã§ã¯æç« ã«ãªãã¾ãããè±èªã®æç« ã¯ä¸»
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}