どうやるのかなと調べたら。以下のように出来ました。 「行頭」に文字を挿入する手順 「control + v」で矩形選択モードへ 「Shift + G」で一番下まで選択 「I」で挿入モードへ 例えば「#」を入力 「esc」で抜ければ完成! 「行末」に文字を挿入する手順 「control + v」で矩形選択モードへ 「Shift + G」で一番下まで選択 「$」 で行末まで選択 「A」で挿入モードへ 「,」を入力 「esc」で抜ければ完成! おまけ「すべての改行をなくす方法」 「control + v」で矩形選択モードへ 「Shift + G」で一番下まで選択 「J」を入力して完成 参考 矩形選択で行末に文字を挿入する方法 - Guyon Diary Vimで選択範囲の行頭、行末に文字を挿入する - chulip.org http://d.hatena.ne.jp/kengon/2005091
標準組み込みオブジェクトArrayコンストラクターArray() constructorプロパティArray[@@species]Array.prototype[@@unscopables]Array: lengthメソッドArray.prototype[@@iterator]()Array.prototype.at()Array.prototype.concat()Array.prototype.copyWithin()Array.prototype.entries()Array.prototype.every()Array.prototype.fill()Array.prototype.filter()Array.prototype.find()Array.prototype.findIndex()Array.prototype.findLast()Array.prototype.fi
だれもが一度はひっかかったことがあるであろうこれ var hoge = function() { var str = arguments.join(','); console.log(str); }; hoge('a', 'b', 'c'); 実際に runstant で動かすと join は関数じゃないよ って エラーがでているのがわかるかと思います. [runstant] これは arugments は配列っぽいけど配列ではない為, 配列系のメソッドが使えずに起きるエラーです. ただ arguments に配列のメソッドを適応したいって場面はよくあると思うので その解決方法を紹介します. arguments を Array に変換 Array.prototype.slice.call に arguments を渡すことで 配列に変換することができます. var hoge = funct
コンソール文字の色を変える node.jsはWEBアプリだけでなく、コンソールアプリを作成することも出来ます。 そのときには当然コンソール上に文字を表示してユーザーとやりとりしますが、今回紹介するcolor.jsを使用すると、 コンソール文字に対して色やスタイルを簡単に適用でき、ユーザーへメッセージの意図をわかりやすく伝えることができます。 インストール 今回使用した動作環境は以下のとおりです。 OS : MacOS X 10.7.2 Node.js : v0.4.11 npm : 1.0.30 ではnpmを使用してインストールしましょう。 %npm install colors colors@0.5.1 ./node_modules/colors インストールできたらnpmコマンドで確認します。 %npm list /Users/syuta/srcs/nodeapps/colors └─
Nginx 1.4.2で試しました。 ネームサーバーは、ローカルのunboundをlocal-zone, local-dataを使って簡易コンテンツサーバーにして試しました。 local-zone: "oreno." static local-data: "api.oreno. 30 IN A 192.0.2.11" # local-data: "api.oreno. 30 IN A 192.0.2.12" proxy_passにホスト名を書くと→名前解決は一度だけ このように Nginx の設定を書いた場合、 location /api { proxy_pass http://api.oreno:9999; } 「api.oreno」の名前解決は、nginxの起動時に行われます 名前解決できない場合は、nginxは起動しません 名前解決できた場合は、ずっとそのIPアドレスにreverse
Spacebars Spacebars is a Meteor template language inspired by Handlebars. It shares some of the spirit and syntax of Handlebars, but it has been tailored to produce reactive Meteor templates when compiled. Getting Started A Spacebars template consists of HTML interspersed with template tags, which are delimited by {{ and }} (two curly braces). <template name="myPage"> <h1>{{pageTitle}}</h1> {{> na
Molokai is a Vim port of the monokai theme for TextMate originally created by Wimer Hazenberg. By default, it has a dark gray background based on the version created by Hamish Stuart Macpherson for the E editor. You can see screenshots of the scheme at http://winterdom.com/2008/08/molokaiforvim 256-Color terminals are also supported, though there are some differences with the Gui version. Only the
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く