2007-05-01ãã1ã¶æéã®è¨äºä¸è¦§
ãããµã¹ã¤ã³ã¹ãã«ã¡ã³ã社ã®ä¼èª¬çãªããã°ã©ããããæ¥ãé·è·é¢é»è©±ã§ã¦ã¼ã¶ã¼ããã·ã¹ãã ã¯ã©ãã·ã¥ãåãããããå½¼ã¯ããã®é»è©±å£ã§ã¦ã¼ã¶ã¼ã«16é²ã³ã¼ããæ示ãã¦ãã¡ã¤ã³ãã¬ã¼ã ã®å¶å¾¡ããã³ãããã«ã®ãã°ã«ã¹ã¤ãããæä½ããããæ°ãããæ¬ç©â¦
"There's More Than One Way To Do It." ã®ç¥ã§ããããæ¹ã¯ã²ã¨ã¤ãããªããã¨ãã Perl ã®ã¹ãã¼ã¬ã³ã ãªãã»ã©ã表è¨ã®åé·æ§ãé«ãã£ã¦ãã¨ãã ç´ äººã®å¦ç¿ãé£ãããªããã ãã©ãããããã表ç¾ã®èªç±ã£ã¦ãã¨ããªï¼ ã¾ããèªããªããªããããªã¯ã³ã©ã¤â¦
æ®éã«çµãã¨é¢ç½ããªãã®ã§ã ã¯ã³ã©ã¤ãã¼ã§ãã£ã¦ã¿ãï¼ç¬ $ echo 'main(){int i;for(i=1;i<101;++i){if(i%3>0&&i%5>0)printf("%d",i);printf("%s%s\n",i%3<1?"Fizz":"",i%5<1?"Buzz":"");}}'>a.c;gcc -w a.c;./a.out;rm a.c a.outæããèããããªãããâ¦
ã¤ã³ã¹ãã¼ã« #aptitude install gpc ã³ã³ãã¤ã«æ¹æ³ $gpc foo.pas
ããå®å ¨ã«å¿ãã¦ããã©ãã§;ãçç¥å¯è½ã¨ãæå¾ã®endã®å¾ã®.ã¨ãifæããããã¯ã®æã«ã¯begin endã¨ããæ ããªãã program fizzbuzz; var i : integer; begin for i:=1 to 100 do begin if i mod 15 = 0 then writeln("FizzBuzz") else if i mod 3 = 0 theâ¦
ã©ããã¦ããããã¯å ã ã¨setãåä½ããªãã®ã§èª¿ã¹ã¦ã¿ã㨠ãã£ãå 容ã®ããããã¡ã¤ã«ããã£ãã¨ãã¾ãããããã±ã£ã¨è¦ãã¨"hogehuga"ã¨ããåºåããããã¨æå¾ ãã¦ãã¾ãã¾ãããå®éã«å®è¡ãã¦ã¿ãã¨"foobar"ã¨ããåºåçµæãå¾ããã¾ãããªããã®ããâ¦
飽ããããwinä¸ã®bat @echo off set i=1 :loop :echo %i% set /a m=%i%%%15 if %m%==0 goto :15 set /a m=%i%%%3 if %m%==0 goto :3 set /a m=%i%%%5 if %m%==0 goto :5 echo %i% :return set /a i=%i%+1 if %i%==101 goto :exit goto :loop :15 echo FizzBâ¦
ã£ã¦ãã£ã¦ããããã¡ãããã¨ãã¼ï¼ãã®æ¹ã®æ¨æã§ã¯ãªããhttp://lalabitmarket.channel.or.jp/NASApp/prd_detail1/1/0/108745/0000000/-1/ ä»å¸«ã彫ã£ã¦ãããããããããã ã§ã¹ã©ã*1ã§ããããªãªã³ã¯ã⦠http://www.geocities.jp/yuki7878jp/GV10v15vâ¦
å®å ¨ãã³ãã¡ã¤ã
bashãããæ¥ããããç¶æ³ã«(æ¶æååå¤æé¢æ°showãè¦ãã¦ããªãã£ãããã¨æ¹è¡ã³ã¼ãã足ãã®ããã¾ãã«ãæ¥ãããããççã a = [1..100] main = do putStr $ concatMap fizzBuzz a fizzBuzz :: Int -> String fizzBuzz c = if c `mod` 15 == 0 then "Fiâ¦
ããããããç© for($i=1; $i<=100 ; $i++){ if($i % 15 == 0) { echo "FizzBuzz"; }elseif($i % 3 == 0){ echo "Fizz"; }elseif($i % 5 == 0){ echo "Buzz"; }else{ echo $i; } echo "\n" ; }ãã²ã¨ã¤ for($i=1;$i<=100;$i++){echo($i%3?($i%5?$i:"Buzz"):(â¦
å¿ããªãããã«ããã«ããã¦ãããä¸ã¤ã (define (fizz-buzz) (let loop ((i 1)) (cond ((= (remainder i 15) 0) (print "FizzBuzz")) ((= (remainder i 3) 0) (print "Fizz")) ((= (remainder i 5) 0) (print "Buzz")) (#t (print i)) ) (if (< i 100) (loâ¦
æ§æ²ãããªãä»åº¦ã¯bashããã¾ãä¸æãããªãã®ã§ããã¥ã¢ã«ã¨ãåéã¢ã¼ã $ for i in $(seq 1 100); do if [ $(($i%15)) = 0 ];then echo "FizzBuzz"; elif [ $(($i%3)) = 0 ];then echo "Fizz";elif [ $(($i%5)) = 0 ];then echo "Buzz";else echo $i;fi;â¦
ãªãã調åã«ä¹ã£ã¦ããªã perlã®map調ã¹ã¦ æååé£çµã+ãããªãã¦.ãªã®ãå¿ãã¦ããï¼ãããperlã®æªãã¨ãããï¼ map{(($_%3==0?"Fizz":"").($_%5==0?"Buzz":""))||$_}(1..100)ãã¤ããããperlã«æ»ããããªãï¼å¤§åï¼ $_ã«å ¥ãã®ã¯ãããperlãã¨æã£ãâ¦
大層ãªã¿ã¤ãã«ã®ããã«ã¯ 大ãããã¨ãªããã ãæ¨æ¥ã®é¢æ°å®ç¾©ãlambdaã«ããã ãã defineããªããªã£ã¦å¤§åå¤æ°ããªããªã£ãã®ã ãå±æå¤æ°ï¼ä»®å¼æ°ï¼ï¼ä½¿ãã¾ãã£ã¦ããããããç´ äººã (use srfi-1) (for-each (lambda (i) (print ((lambda (a b) (if (stâ¦
perl ãããã¾ã£ãã(rubyã®irbã«ç¸å½ããï¼ã¤ã³ã¿ããªã¿ããªããperlshã¨ãããå°å ¥ã*1 #aptitude install libterm-readline-gnu-perl #zcat /usr/share/doc/libterm-readline-gnu-perl/examples/perlsh.gz > /usr/local/bin/perlsh #chmod +x /usr/local/â¦
ãã¡ããããã¥ã¢ã«ã¨ã¤ãã£ããã ä½æ°ã«æ¥½ããã£ãã fãdefineãã¦ãããããè² ãç¬ã (use srfi-1) (define (f a b) (if (string=? "" a) b a)) (for-each (lambda (i) (print (f (string-append (if (= (remainder i 3) 0) "Fizz" "") (if (= (remaindeâ¦
1ãã100ã¾ã§ã®æ°ãããªã³ãããããã°ã©ã ãæ¸ãããã ã3ã®åæ°ã®ã¨ãã¯æ°ã®ä»£ããã«ãFizzãã¨ã5ã®åæ°ã®ã¨ãã¯ãBuzzãã¨ããªã³ããã3ã¨5両æ¹ã®åæ°ã®å ´åã«ã¯ãFizzBuzzãã¨ããªã³ããããã¨ãã¡ããã¨ããããã°ã©ãã§ããã°ããããå®è¡ããããã°â¦
wgetã¯åå¾ä¸ã«ã¯ç¾å¨ã®æéãæãã¦ããããåå¾å¾ã«ãªã½ã¼ã¹ã®ã¿ã¤ã ã¹ã¿ã³ãã«èª¿æ´ããã
ãã¡ã¤ã«ã·ã¹ãã 代ããã«å ¨ææ¤ç´¢ã·ã¹ãã ã使ããªãã½ã¼ãã¯æ¬ ãããªããå ¨ã¦ã®ãã¡ã¤ã«ããæ°ãããã®ããµã¼ã estcmd search -ic EUC-JP -vu -ord "@mdate NUMD" ./casket/ "[UVSET]" | nkf -e
lgrepã®æåãå¯ããã£ã¦ããããå ã¦ããã¨ããã®ã ãæ«æ rastãã¤ã³ã¹ãã¼ã«ãããã¨ãããæ¬ä½ã®ãã¼ã¸ãç¡ããªã£ã¦ãã®ã«æ°ãã¤ãã¦ä¸å®ã«æãå¥ã®æ¤ç´¢ã·ã¹ãã ãçºè¦ãéãããªæ°é ãããã®ã§æ©éã¤ã³ã¹ãã¼ã« #aptitude install hyperestraier libestâ¦
lgrepã¯ãªãã·ã§ã³ãlvã®ã¾ã¾ã§grepã®å¤§äºãªãªãã·ã§ã³-l -Hã使ããªãã åãã¡ã¤ã«ã®æã¯é常ã®grepã¨åãåã è¤æ°ãã¡ã¤ã«ã®æ grep -Hã¨åãåãã¨ãããã¨ã¯grepã®andæ¤ç´¢ã§ãã以ä¸ã使ããªãã $ find . -exec grep -l "è¨è " \{} \; | xargs grep -â¦
lvã¨ã»ããã®ããã±ã¼ã¸ã§lgrepã¨ããã®ãããã $ export fn="1";echo "æ±½è»ã§å¸°ç¤¾ãã貴社ã®è¨è "|nkf -e|tee $fn.euc.txt|nkf -s|tee $fn.sjis.txt|nkf -j|tee $fn.jis.txt|nkf -w>$fn.utf.txt $ export fn="2";echo "é£ã®å®¢ã¯è¯ãæ¿é£ã客ã "|nkf -e|teeâ¦
/var/log/sambaä¸ã«tdbãåå¨ããããã ããã¡ãããã¤ããªãªã®ã§æä½ã¯ã³ãã³ãã§è¡ãã pdbedit -a ã¦ã¼ã¶å ã§è¿½å ï¼äºåã«adduserã§ã¦ã¼ã¶ç»é²ãã¦ããå¿ è¦ããï¼ pdbedit -a -m ãã·ã³å ã§ãã·ã³ã®è¿½å ï¼äºåã«useradd ãã·ã³å$ã§ã¦ã¼ã¶ç»é²ãã¦ããâ¦
ãªããä¸å°åçµããã ãã®ãã¼ãããã£ãã®ã§ã±ã¼ã¹ç¡ãã§çµãã§ã¿ã ãã¶ã¼ãã¼ãã«ç´ä»ãã®ï¼¬ï¼¥ï¼¤ãå¥æ°ã ã§ã以ä¸ãainex製ã®å®é¨ç¨ã¹ã¤ããã»LEDã»ãããæ¤è¨¼ããã¢ãï¼ç¬ ããã ãã§1000åãããã ãã©ããã¼ããéããæ¹ããããã¨æã£ããããããæ¢â¦
ffmpegã®å ¥åãã¡ã¤ã«ã®æå®ãå¾ã§æ¸ããæ¹ããããã ã¨æã以ä¸ã®ããã«ããã¨ã¨ã©ã¼ã«ãªãã $ffmpeg -y -vcodec xvid -qscale 5 -s 320x240 -b 768 -ab 64 -i a.avi output.mp4 ã»ã»ã» Error while opening codec for output stream #0.1 - maybe incorreâ¦
iGoogleã®google talkã¢ãã¬ããã誤ã£ã¦æ¶ãã¦ãã¾ãã ãããããªããgaimããgoogle talkã«æ¥ç¶ãã¦ã¿ãã ä¹ ãã¶ãã«IMãã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã®ã ãæªããªãã æã®ã¢ã«ã¦ã³ãããããªãã«å¾©æ´»ããã¦ã¿ãã ãã£ã±ã誰ãå ¥ã£ã¦ããªãã£ãï¼ç¬ ããããâ¦
ãããlinuxãã·ã³ã«ãã©ã¤ããã¤ãã¦ããªãã£ãï¼ç¬ ã¨ãããããwindowsãã·ã³ãç«ã¡ä¸ãã¦â¦ããã©ã¤ãã£ã³ã°ã½ããããªãï¼ç¬ ããããªã½ããããããã¨ããããç·æ¥çé¸ãIsoBusterã¨IsoRecorderã ã ç¹ã«IsoRecorderã¯å³ã¯ãªãã¯ã¡ãã¥ã¼ã§isoãã¡ã¤ã«â¦
miniSDã使ãã¨ãã«ã¢ããã¿ã¼ã使ã£ã¦ããã®ã ããäºä»¶çºçã å³ã«è¦ãã¦ãâ²LOCKãæ¸ãè¾¼ã¿è¨±å¯ãªã®ãä»ã¾ã§ç¥ããªãã£ãã ãã¾ãã¾ãããããã¦ã¦ä½åº¦ãã£ã¦ã以ä¸ã®ã¨ã©ã¼ã帰ã£ã¦ãããã¡ãªã¿ã«miniSDã«ã¯ãããªå¯åé¨åã¯ç¡ãã touch: cannot touch `â¦
ã¡ãã£ã¨åã«è¦ãã®ã§ã¤ãã§ã«æ¸ãã¨ããFREEDOM 1 [ 森ç°ä¿®å¹³ ]ã¸ã£ã³ã«: CDã»DVDã»æ¥½å¨ > DVD > ã¢ãã¡ > ãã®ä»ã·ã§ãã: 楽天ããã¯ã¹ä¾¡æ ¼: 3,693å大åãããã¦è¯ãä½åã ãè¥å¹²å¤ãæãã¯ãããã©ã¹ãã¼ã ãã¼ã¤ããã¯è¯ãããããªãããªã