PerlTestingã®Chapter1æçµæ¦ã§ãã ok()ã£ã¦åºæ¬ä¸ã®åºæ¬ã§ãããã£ã±ãä¸ä¾¿ã§ããããããªãã¹ããããã®ã«æ¡ä»¶ã1åã«ç¸®ããªãã¨ãããªããã§ããã®ãã§ããTest::Moreã«ã¯ok()ã®ä»£ããã«ä½¿ããã¤ã±ã¦ãé¢æ°ãããã¤ãããã¾ãã ã¾ãã¯ãã¹ãã³ã¼ãã #!/usr/bin/perl use strict; use warnings; use Test::More tests => 4; use_ok('Greeter') or exit; my $greeter = Greeter->new(name => 'Emily', age => 21); isa_ok($greeter, 'Greeter'); is($greeter->age(), 21, 'age() should return age for object'); like($greeter->gr
Test::Moreã§ãã¹ããTODOæ±ãã«ãããã¨ãåºæ¥ã¾ããã©ããããã¨ãã¨ããã¨ã testèªä½ã¯æ®éã«è¡ãã 失æãã¦ãããã¯TODOæ±ãã¨ãã¦ããã¼ã¿ã«ã®çµæã§ã¯æåãããã¨ã«ããã ã¨ããæãã ããã¤ãã®æ©è½ãæªå®è£ ã®ï¼ã¨ãããã»ã¨ãã©ãªã«ããã¦ãªãï¼ã·ã£ã¼ãã³ã¢ã¸ã¥ã¼ã«ï¼æ£ããã¯mechanical pencilãã§ãé·ãããå«ï¼ãããã¨ãã¾ãã package Pencil; use strict; use warnings; sub new { my $class = shift; return bless {}, $class; } sub leads { # TODO } sub supply_leads { # TODO } 1; #!/usr/bin/perl use strict; use warnings; use Test::More tests => 3
ãã¹ã¦ã®é»åæ©å¨ã¨åæ§ãã³ã³ãã¥ã¼ã¿ã«ãæ éãç ´æãèµ·ãããã«ã¼ãã«ã®ã³ã¢ãã³ããçªç¶ã®ã¯ã©ãã·ã¥ã«è¦èããããã¨ããªãã®ã¯ã幸éãªäººã ãã ãããããèµ·ãããã¼ãã¦ã§ã¢ã®åé¡ã¨ãã¦ã¯ãRAMã¢ã¸ã¥ã¼ã«ã®ä¸è¯ãCPUã®éç±ã¾ãã¯ç ´æããã¼ããã£ã¹ã¯ã®ã»ã¯ã¿ã¾ãã¯ã¯ã©ã¹ã¿ã®é害ãå¤ããæ¬ç¨¿ã§ã¯ãããããåé¡ãçªãæ¢ããããã®ãªã¼ãã³ã½ã¼ã¹ãã¼ã«ãããã¤ãç´¹ä»ãããããã§æéã¨ãéãç¯ç´ã§ããã»ããæ©ã¿ã®ç¨®ãæ¸ãã¯ãã ã GNU/Linuxã®ã©ã¤ãCDãã£ã¹ããªãã¥ã¼ã·ã§ã³ã¯ããã¼ãã¦ã§ã¢ã®è¨ºæã«ä¾¿å©ã ããã¼ãã¦ã§ã¢ã®è¨ºæã«ç§ã好ãã§ç¨ããã©ã¤ãCDãã£ã¹ããªãã¥ã¼ã·ã§ã³ã®GRMLã«ã¯ããããã説æãããã¼ã«ãã¯ããããã¼ã ã¦ã¼ã¶ã¨çç·´ã·ã¹ãã 管çè ã®ã©ã¡ãã«ãå½¹ç«ã¤ããã°ã©ã ãå«ã¾ãã¦ããããªããããã§èª¬æãããã¼ã«ã®ä¸é¨ã¾ãã¯ãã¹ã¦ãå ¥ã£ã¦ããGRML以å¤ã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³ãåå¨ããã
Puppet is a cross-platform system for managing machines. It can manage files, packages, users and anything else that needs managing. The system is composed of a puppetd daemon process running on a client machine, which periodically connects to a remote puppetmaster to download its configuration and apply it. All communication and file transfers between the client and puppetmaster are done via XML/
What is pyjs? pyjs is a Rich Internet Application (RIA) Development Platform for both Web and Desktop. With pyjs you can write your JavaScript-powered web applications entirely in Python. pyjs contains a Python-to-JavaScript compiler, an AJAX framework and a Widget Set API. pyjs started life as a Python port of Google Web Toolkit, the Java-to-JavaScript compiler. What is pyjs Desktop? pyjs Desktop
*[hatefu:labs.yaneu.com/20090905/] ã³ã³ãã¥ã¼ã¿å°æ£ããã°ã©ã ãLISPã§æ¸ã ãã³ã³ãã¥ã¼ã¿å°æ£ããã°ã©ã ãLISPã§æ¸ããã¨è¨ãã¨ã³ã³ãã¥ã¼ã¿å°æ£éçºé¢ä¿è ã«ããå®å ¨ã«ãã¿ãã¨æããã¦ããã®ãå®ç¶ã§ã¯ããããç§ã¯ãããæ©ã«ãã®èª¤è§£ã解ãã¦ããããã ããã§ã¯ãç§ãC#ã§æ¸ããLISPã¨ã³ã¸ã³ã®ã½ã¼ã¹ãå ¬éãããããå®éã«ã³ã³ãã¥ã¼ã¿å°æ£ããã°ã©ã ã®éçºã«ããã¦é常ã«æå¹ã§ãããã¨ã示ãã * YaneLisp version 1.10 ä»åã®è¨äºã¯ãã¾ãã«é·æãªã®ã§æå¾ã¾ã§èªãåã«ç ããªã人ã®ããã«ãã¾ãå§ãã«ç§ãå®è£ ããLISPã®ãã¤ããªã¨ã½ã¼ã¹ãé å¸ãã¦ãããã©ã¤ã»ã³ã¹ã¯NYSLã¨ããã å¢ãã«ä»»ãã¦å®è£ ããã®ã§ãããªãéãªä½ãã ããå¿ è¦ãªãã°C#å´ã§é¢æ°ã追å ãããªãããã°ããã¨æãããã®LISPã®è£½ä½ã«è¦ããæéã¯ä¸¸2æ¥ãããã # YaneL
Perl ⺠ãã使ãé¢æ°ã»ã¢ã¸ã¥ã¼ã« ãã使ç¨ããé¢æ°ã»æ¨æºã¢ã¸ã¥ã¼ã«ã®ä¸è¦§ã§ãããããã®é¢æ°ãè¦ãã¦ããã°ãPerlããã便å©ãªãã®ã«ãããã¨ãã§ãã¾ãã詳細ãªè§£èª¬ã¯é¿ããç°¡åãªãµã³ãã«ãç´¹ä»ãã¦ãã¾ããæ»ãå¤ã®ãããã®ã«ã¤ãã¦ã¯$retã¨ããè¨å·ã§è¡¨ãã¦ãã¾ãã ã¾ãããã使ç¨ããç¹æ®å¤æ°ãæ¨æºã¢ã¸ã¥ã¼ã«ã«ã¤ãã¦ãã解説ãã¦ãã¾ããåé ç®ãããé¢æ°ã®è©³ç´°ã«ããªã³ã¯ãã¦ãã¾ãã®ã§ã便å©ã«ãå©ç¨ãã ããã æ°å¦é¢æ° æååæä½ é åæä½ ããã·ã¥æä½ ãã¡ã¤ã«å ¥åºå ãã¡ã¤ã«ã»ãã£ã¬ã¯ããªæä½ æå»ã»æé ãã®ä»ã®éè¦ãªé¢æ° é¢æ°ã¨ã¢ã¸ã¥ã¼ã«ã®ããã¥ã¡ã³ãã®èª¿ã¹æ¹ ãã使ç¨ããç¹æ®å¤æ° ãã使ç¨ããæ¨æºã¢ã¸ã¥ã¼ã« æ°å¦é¢æ° abs 絶対å¤ãæ±ããã«ã¯absé¢æ°ã使ç¨ãã¾ãã $ret = abs $num; abs(-3)ã¯3ã«ãªãã¾ãã sqrt æ£ã®å¹³æ¹æ ¹ãæ±ããã«ã¯ãsqrté¢æ°ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}