2010-04-01ãã1ã¶æéã®è¨äºä¸è¦§
http://tobysoft.net/wiki/index.php?Ruby%2Fsinatra%2F%BC%AB%C6%B0%A5%EA%A5%ED%A1%BC%A5%C9%A4%B9%A4%EB%CA%FD%CB%A1 ä»ã¾ã§shotgunã§ãã£ã¦ãããshotgunã§èµ·åããã¨å¥ã®ãã¹ãããã¢ã¯ã»ã¹ã§ããªãã£ãã®ã§ sudo gem install sinatra-reloaderrequire â¦
mbedã§stdã¯ä½¿ãããã©boostã使ããªãã®ã§sprintfã®ä½¿ãæ¹ãåå¼·ããã c++ã®stringã¨cã®charé åãè¡ã£ããæ¥ããããã®ãããã©ãã»ã» test.cpp #include <iostream> #include <string> #include <stdio.h> using namespace std; int main(int argc, char* argv[]){ string result_st</stdio.h></string></iostream>â¦
aptã§å ¥ã奴ãå¤ãã£ãã®ã§ã½ã¼ã¹ããå ¥ããã configureã§bzlib.hãè¦ã¤ãããªãã£ãããlibbz2-devã«å ¥ã£ã¦ããã wget http://downloads.sourceforge.net/project/tokyocabinet/tokyocabinet/1.4.32/tokyocabinet-1.4.32.tar.gz sudo apt-get install zliâ¦
身è¿ãªAndroidæ¬ã®èè ã«SDKã¤ã³ã¹ãã¼ã«ãç´ä¼ãã¦ããã ããã®ã§ãã¡ã¢ãæ®ãã¾ããâ ãã¦ã³ãã¼ããé ç½® eclipse classicï¼ã¾ã£ãããªeclipseï¼ http://www.eclipse.org/downloads/ ããã¦ã³ãã¼ãã3.5.2ãæã«å ¥ãã android-sdk_r05-mac_86.zip ããã¦â¦
åãã¡æ¸ãã ããããæãparseToNodeãã¦node.surfaceã§æåã ã(åè©ã¨ãã¦ã®æ å ±ãªã©ãé¤ãã¦)åããmecab-split-terms.rb #!/usr/bin/env ruby require 'rubygems' require 'MeCab' exit if ARGV.size < 1 puts ARGV.to_s node = MeCab::Tagger.new.parsâ¦
é¢æ°ãå¼æ°ã«åãé¢æ°(for-eachãmap)ãå¼æ°ã«åãé¢æ°(tree-walk)ãä½ããfor-eachãmapã®ä»£ããã«lambdaã§æ°ããtreewalkã®æ¹æ³ãæ¸ãã¨ãã®ä¾ãåå¼·ãã tree-walk.scm #!/usr/bin/env gosh (print "p.65 tree-walk") ;; listã®ä¸èº«ãlistã ã£ããå帰çâ¦
sudo gem updateãã¦hoeã2.6.0ã«ãªã£ãããnewgemã§gemãä½ããªããªã£ããrakeã¿ã¹ã¯å®è¡ãã㨠/opt/local/lib/ruby/gems/1.8/gems/hoe-2.6.0/lib/hoe/debug.rb:18: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 rake abortâ¦
(define lis '(1 2 3)) (print lis) (define lis (append lis '("test" "hello"))) (print lis) (1 2 3) (1 2 3 test hello)(define (func lis) (print lis) ) (func '(1 2 3)) (1 2 3) æ¸ãæããã¨ãªããundefã«ãªã (define (func lis) (define lis (appeâ¦
p.56 listã®é·ããè¨ç®ãã #!/usr/bin/env gosh (define (length lis) (define (length-walk lis n) (if (null? lis) n (length-walk (cdr lis) (+ n 1)) ) ) (length-walk lis 0)) (print (length '(1 2 3))) p.56 ãªã¹ãå ããæ¡ä»¶ãæºããè¦ç´ ãæãåºãâ¦