A required part of this site couldn’t load. This may be due to a browser extension, network issues, or browser settings. Please check your connection, disable any ad blockers, or try using a different browser.
Got a question? Join us on stackoverflow, the mailing list or chat on IRC Introduction Bluebird is a fully featured promise library with focus on innovative features and performance See the bluebird website for further documentation, references and instructions. See the API reference here. For bluebird 2.x documentation and files, see the 2.x tree. Note Promises in Node.js 10 are significantly fas
Ruby 上で http を叩いた通信見たい時に、毎回同じ事をやってるので抽象化して http-dump というライブラリを作った。 https://github.com/hotchpotch/http-dump $ gem install http-dump require 'net/http' require 'uri' require 'http-dump' HTTPDump.dump { Net::HTTP.get(URI('http://example.com')) } と http でやりとりしてるコードを block で囲むと、以下のように出力される。 > GET http://example.com/ with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=
jackson.md 下書き Jacksonとは JacsonはJSON(JavaScript Object Notation)と呼ばれるデータ記述言語を扱うためのJavaライブラリ。 ウェブアプリケーション開発ではJSONが必須の技術になってきている。 JavaでJSONを扱うためのAPIがJava EE 7に含まれる予定。JSR 343として仕様策定中。 JSONとは JSONはJavaScriptのリテラル表記をベースにしたデータ記述言語。 クライアントのウェブブラウザなどで利用できるJavaScriptで容易に扱えるから、Webサーバとのデータ交換フォーマットとして広く利用されている。 JSONの仕様 RFC 4627で仕様が規定されている。 またjson.orgでもJSONの仕様を確認することができる。 json.orgには日本語のページも用意されているので英語が苦手な方はこちら
ヘルプバッファや補完バッファをポップアップで表示してくれるpopwin.elをリリースしました。popwin.elはEmacsにポップアップウィンドウという概念を導入することにより、バッファを表示する(display-buffer)際のEmacsのトチ狂った仕様を矯正します。この「トチ狂った仕様」とは例えば、 M-x describe-functionしたらウィンドウが勝手に分割された あるいはウィンドウのバッファを勝手に切り替えられた ヘルプバッファ(*Help*)とか補完バッファ(*Completions*)がどのウィンドウに出現するか予測できない しかも作業後にそれらのバッファが表示されたままになったりする のようなものを指します。Emacsを触ったことがある人なら上記のいずれかは不満に思ったことがあるはずです。ちなみに僕は全てを不満に思っています。 余談になりますが、Wikiped
仕事してるとテストデータを作ったり、またはシステムのデータをダウンロードさせたりとかで、結構csvやxls形式を使います そんなときに便利そうなライブラリがあったのでちょっと試して見ました tablib https://github.com/kennethreitz/tablib document http://docs.python-tablib.org/en/latest/index.html インストール pip install tablib 使い方 新しくデータを作成する # ヘッダ import tablib headers = ('名字', '名前') # データ data = [('東方','仗助'), ('虹村', '億泰')] # 表データの作成 data = tablib.Dataset(*data, headers=headers) # 行を追加 data.appen
EmacsでのPython環境を整えるのはいろいろと面倒。 なので簡単に補完できる環境を作れるようにしてみた。 問題 デフォルトのモードpython.elと、昔からよく使われてるpython-mode.elがある。 python-mode.elは設定すれば多機能でとても便利。しかし、環境作るのは手間がかかる。pymacs入れたりpycompleteとかipythonとか色々ややこしい。 Pythonでの補完をGoogleで調べると様々なやり方がでてくる。どれも面倒くさそう。 新しいPCを購入した時とか再インストール時とか、速攻Python書ける環境にしたい。 python.elにはcomplete symbol(M-TAB)があるけど使い勝手が悪い。 結論 python.el + auto-complete-mode + ac-python ごちゃごちゃ考えず、デフォルトのpython.e
Download ;;; anything-ipython.el --- ;; ;; Author: Thierry Volpiatto ;; Maintainer: Thierry Volpiatto ;; ;; Created: sam. juil. 25 18:48:31 2009 (+0200) ;; Version: ;; X-URL: http://mercurial.intuxication.org/hg/anythingipython ;; Keywords: ipython, python, completion. ;; Compatibility: ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Gene
The argparse module includes tools for building command line argument and option processors. It was added to Python 2.7 as a replacement for optparse. The implementation of argparse supports features that would not have been easy to add to optparse, and that would have required backwards-incompatible API changes, so a new module was brought into the library instead. optparse is now deprecated. Set
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く