Myron MarstonJan 14, 2014One of RSpec 3’s big new features is shipping 3.0.0.beta2: composable matchers. This feature supports more powerful, less brittle expectations, and opens up new possibilities. An Example In RSpec 2.x, I’ve written code like this on many occassions: # background_worker.rb class BackgroundWorker attr_reader :queue def initialize @queue = [] end def enqueue(job_data) queue <<
この記事は Vim Advent Calendar 2013 48日目の記事になります。 Vim Advent Calendar 2013 の記事を書きたい人は明日すぐに書けますよ!! Vim Advent Calendar 2013 さて、今回の記事なのですが、少し前から Clang の libclang を使用したプラグインを作成しています。 libclang を利用する事で比較的感に Vim から型や定義位置の情報など取得することができます。 まだ完成というわけではないのですが、最低限の機能は実装できたので一旦公開してしまおうかなーと思います。 だいぶ煮詰まってきているのでフィードバックなどがもらえると嬉しいです。 [動作環境] Clang 3.3 or 3.4 Vim +python Clang 3.3 もしくは Clang 3.4 で動作確認を行っています。 (3.5 でも動作す
OverFeat is a Convolutional Network-based image features extractor and classifier. The underlying system is described in the following paper: Pierre Sermanet, David Eigen, Xiang Zhang, Michael Mathieu, Rob Fergus, Yann LeCun: “OverFeat: Integrated Recognition, Localization and Detection using Convolutional Networks”, International Conference on Learning Representations (ICLR 2014), April 2014. (Op
Agen Sbobet online taruhan Indonesia adalah cara yang bagus bagi orang untuk mendapatkan sedikit kesenangan di sela-sela tekanan kehidupan sehari-hari. Tidak semua orang yang bermain judi agen sbobet online taruahan asia adalah orang jahat. Banyak orang yang menggunakan judi online untuk keuntungan mereka bukan hanya yang Anda pikirkan. Agen... Agen SBOBET Mobile Indonesia telah mendapatkan reputa
This article was ported from my old Wordpress blog here, If you see any issues with the rendering or layout, please send me an email. A professor at Stanford once said, If you really want to impress your friends and confound your enemies, you can invoke tensor products… People run in terror from the $ \otimes$ symbol. He was explaining some aspects of multidimensional Fourier transforms, but this
Learn to implement token-based authentication using Socket.IO in this quick tutorial. Introduction Authentication in realtime frameworks can be challenging. Perhaps this is because the way these systems work is quite different from a regular web app. The risk of not correctly authenticating your sockets traffic is that you could end up sniffing information on other users streams. The socket server
Remzi H. Arpaci-Dusseau and Andrea C. Arpaci-Dusseau (University of Wisconsin-Madison) NEW: Security Chapters by Peter Reiher (UCLA) Welcome to Operating Systems: Three Easy Pieces (now version 1.10 -- see book news for details), a free online operating systems book! The book is centered around three conceptual pieces that are fundamental to operating systems: virtualization, concurrency, and pers
The diagrams team is very pleased to announce the 1.0 release of diagrams, a framework and embedded domain-specific language for declarative drawing in Haskell. Check out the gallery for some examples of what it can do. Diagrams can be used for a wide range of purposes, from data visualization to illustration to art, and diagrams code can be seamlessly embedded in blog posts, LaTeX documents, and
意外と知られていない構造化プログラミング、あるいは構造化プログラミングはデータも手続きと一緒に抽象化する、あるいはストロヴストルップのオブジェクト指向プログラミング史観 書いた人: ると 猫型プログラミング言語史観(1) 〜あるいはオブジェクト指向における設計指針のひとつ〜という記事がありました。手続き型からの発展としてのオブジェクト指向という史観を書いた記事です。しかし、そこで次のように述べられている史観は少々単純化しすぎです。 手続き型プログラミングでは手続きを抽象化することで保守性を挙げることに成功したが、データを守ることには失敗してしまった。そこでオブジェクト指向はデータと手続きをひとかたまりにすることでデータを外から守るというコンセプトを打ち出した。 手続き型プログラミングの時代は、少なくとも思想的にはそこまで暗黒的ではありませんでしたし、「データと手続きをひとかたまりにする」の
この記事は Competitive Programming Advent Calendar Div2013 の 12 月 23 日の記事として書かれました. C++11 のすすめ C++03 は普段から使っているけども C++11 はまだ触ったことがない人向けの入門記事です.最近は多くのプログラミングコンテストで C++11 が使えるようになりつつあります.C++11 で大幅に C++ が書きやすくなっているので,ぜひこの記事を読んで C++11 を使い始めてください!この記事では C++11 に追加された多数の新機能のうちコンテストに役立ちそう(もしくは多くの人が使いそうな)機能を紹介します. 手元での実行の仕方 GCC もしくは clang を利用していれば -std=c++0x というオプションを追加すれば C++11 の機能が有効になります. $ g++ -std=c++0x -o
Sometime ago I made a simple script for my zsh setup that allows me to see whether am I in a cabalized sandbox environment or not. I posted it to Haskell-cafe a month ago, but totally forgot to post it to this blog. The result of checking for the sandbox is cached, which is probably unnecessary; it updates only when the user performs a cabal command or changes a directory. y pkU � �okU # # This s
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く