by shigemk2

当面は技術的なことしか書かない

2014-05-18から1日間の記事一覧

emmet-mode

zencoding-mode 後継の emmet-mode が便利 - Code & Note html>head>body って書いてCtrl-j すると <html> <head> <body> </body> </head> </html> って展開される。

oh-my-zshに学ぶ.gitignore

oh-my-zshの.gitignoreはこんな感じ。 locals.zsh log/.zsh_history projects.zsh custom !custom/plugins/example !custom/example.zsh *.swp !custom/example.zshcache cache/ *はワイルドカード。 !で否定を表す。 新しく本家にプルリクエストを投げるの…

適当な事始めその2

// サーバを起動するメインの部分 var http = require('http'); var server = http.createServer(); server.on('request', doRequest); server.listen(1234); // 実際にクライアントからアクセスのあった部分をonで呼ぶ function doRequest(req, res) { res.…

適当な事始め

var http = require('http'); http.createServer(function (req, res) { res.setHeader('Content-Type','text/plain'); res.end('Hello, World\n'); }).listen(1337, '127.0.0.1'); console.log('Server running at http://127.0.0.1:1337/'); むしろpackage…