ä¸å®æéæ´æ°ããªãããåºåã表示ãã¦ãã¾ã
Nodeã§ãã¡ã¤ã«ãèªã¿è¾¼ã Node.jsã§ãã¡ã¤ã«ã®èªã¿æ¸ãããã¡ã¤ã«ã·ã¹ãã ã®æä½ãè¡ãã¨ãã¯ãfsã¢ã¸ã¥ã¼ã«ã使ç¨ããã ã¾ãã¯ãã¡ã¤ã«ã®èªã¿è¾¼ã¿ãããã£ã¦ã¿ãã 以ä¸ã®ãã¡ã¤ã«ãç¨æããã vi test.txt ------------ test hoge ------------ ã§ãä¸è¨ã®test.txtãã¡ã¤ã«ãèªã¿è¾¼ãNodeã®ãµã³ãã«ã¯ä»¥ä¸ã®éãã var fs = require('fs'); fs.readFile('./test.txt', 'utf8', function (err, text) { console.log('text file!'); console.log(text); console.log('error!?'); console.log(err); }); å®è¡ããã $ node readtest.js çµæã¯ä»¥ä¸ã®éãã [sysm
python from datetime import datetime, timedelta today = datetime.today() today + timedelta(minutes=1) # => 1åå¾ today + timedelta(hours=1) # => 1æéå¾ today + timedelta(days=1) # => 1æ¥å¾ ruby require 'date' today = DateTime.now() today + Rational(1, 24 * 60 * 60) # => 1åå¾ today + Rational(1, 24) # => 1æéå¾ today + 1 # => 1æ¥å¾ ActiveSupportã使ã£ãã»ãã楽ã§ãã require 'date' require 'active_support/core_ext' toda
å æ¥ãdotjsé¢ç½ãã¨ãã - ã½ãã´ããããã¨ããªãã¦ã®ãæ¸ãã¦pullãããã§ãã rubyãWEBrickãOS Xã«ã¯ããã©ãªãã ãããã£ã¡ã§ thx ã¿ãããªè¿äºãè¿ã£ã¦ãã¦èããªåã§ãã dotjsãªãã ããserverãinstallerãjsã§ãããï¼ã£ã¦ã®ã¯å®æçãªåé¡ã§ããã ãã¦ãã ã¾ããinstallerãæ¸ãããããã§shellã³ãã³ããå©ããããã¦ã¿ãã®ã§ã¡ãã£ã¨ã¾ã¨ãã¾ã shellã³ãã³ããå©ãã«ã¯2種é¡ã®APIãç¨æããã¦ãã¾ãã1ã¤ã¯execãããä¸ã¤ãspawnã§ãã exec 1åãã£ããã®ã³ãã³ããå©ãå ´åã¯ãã¡ããããã§ããããã³ãã³ããæååã§æ¸¡ãã¦callbackã§åãåãã ãã§ãã $ sh -c 'æåå'ã¿ãããªæ°åã§å®è¡ã§ãã¾ãã 1. ã¾ããshellã³ãã³ããå®è¡ããããã«ã¯child_processã¢ã¸ã¥ã¼ã«ãrequire
!!! 5 html(lang="en") head title= pageTitle(car insurance montana) :javascript | if (foo) { | bar() | } body h1 Jade - node template engine #container - if (youAreUsingJade) You are amazing - else Get on it! Get on it! Get on it! Get on it! <!DOCTYPE html> <html lang="en"> <head> <title>Jade</title> <script type="text/javascript"> //<![CDATA[ if (foo) { bar() } //]]> </script> </head> <body> <h1>J
node.jsï¼v0.8.18ï¼ãCentOS6.3ã«ã¤ã³ã¹ãã¼ã«ããã¨ãã«è¡ã£ãä½æ¥ã®ã¡ã¢ã§ãã ä½æ¥ã®ã»ã¨ãã©ãPythonã®ãã¼ã¸ã§ã³ã¢ããä½æ¥ã§ããã 1.Pythonã2.6.xãã2.7.3㸠node.js(v0.8.xx)ã¯yumã§ã¤ã³ã¹ãã¼ã«ã§ããPython2.6.xã§ã¯makeã§ããªãã (1) Pythonã2.7.3ã«ããããã«å¿ è¦ãªãã®ã®ã¤ã³ã¹ãã¼ã« $ sudo yum install gcc-c++ zlib zlib-devel tk-devel tcl-devel sqlite-devel ncurses-devel gdbm-devel readline-devel bzip2-devel db4-devel openssl-devel (2) Pythonã®ãã¦ã³ãã¼ãã¨è§£å $ cd /tmp $ wget http://python.org/f
AOJã§javaScript(node.js)ã使ãããã¨ã«æ°ã¥ããã®ã§æ©éãã£ã¦ã¿ãã®ã§ãããéåæI/Oã§ããã³ã³ããã®ã¯ãªããªãæ¬æ°ãªä½é¨ã ã£ãï¼ç®èã§ãï¼ã®ã§ãå¾ä¸ã®ããã«æ®ãã¦ããã¾ãã å ¥åã馬鹿ã¿ããã«ã§ããã£ããå¤åçãªå½¢å¼ãåãåé¡ã®å ´åããããã対å¦ã§ããªãã§ããã§ããããããNode.jsã§ç«¶æããã°ã©ãã³ã°ãããã£ã¦ããçºæ³ãééã£ã¦ãã®ã§ãããããã¨ãã¯è«¦ãã¦Rubyã¨ãPython使ã£ã¦ãã ãããèªåã§å ¥åãå¦çãããã¨ããã¨å¤åè©°ã¿ã¾ãã function main() { //ããã§åé¡ã解ã //`input` ã«å ¥åãæ¹è¡ã§åºåãããé åã¨ãã¦å ¥ã£ã¦ããã®ã§é å¼µã£ã¦ } var input = ''; process.stdin.resume(); process.stdin.setEncoding('utf8'); process.stdin.on('
çµæï¼ [ [ 'ãã¤ã', 'å¯è©', 'ä¸è¬', '*', '*', '*', '*', 'ãã¤ã', 'ã¤ãã¢', 'ã¤ãã¢' ], [ 'ãã³ãã³', 'å¯è©', 'å©è©é¡æ¥ç¶', '*', '*', '*', '*', 'ãã³ãã³', 'ãã³ãã³', 'ãã³ãã³' ], [ 'ããªã', 'åè©', '代åè©', 'ä¸è¬', '*', '*', '*', 'ããªã', 'ã¢ãã¿', 'ã¢ãã¿' ], [ 'ã®', 'å©è©', 'é£ä½å', '*', '*', '*', '*', 'ã®', 'ã', 'ã' ], [ 'é£', 'åè©', 'ä¸è¬', '*', '*', '*', '*', 'é£', 'ãããª', 'ãããª' ], [ 'ã«', 'å©è©', 'æ ¼å©è©', 'ä¸è¬', '*', '*', '*', 'ã«', 'ã', 'ã' ], [ 'éã', 'åè©', 'èªç«'
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}