I write my interests on the weblog.
Weblog
C# Taskクラスとawait演算子/asyncキーワード
Taskクラス Taskのインスタンスを直接作成することは多くなく、ライブラリが提供する非同期メソッドの戻り値として取得することが多い。 例) Task
Weblog
プログラミング言語の人気ランキング集
プログラミング言語の人気ランキング集 IEEE Spectrumチーム 2015年 TOP10 http://spectrum.ieee.org/computing/software/the-2015-top-ten-programming-languages GitHub 2008 - 2015 Top10 https://github.com/blog/2047-language-trends-on-github TIOBE Top 20 http://www.tiobe.com/content/paperinfo/tpci/index.html RedMonk Top 20 https://redmonk.com/sogrady/category/programming-languages/ PYPL Popularity of Programming Language index http://pypl.github.io/PYPL.html
Weblog
Pythonでパイプ
Pythonでパイプの処理をしたい場合、sys.stdinを使用する。 #!/usr/bin/env python # -*- coding: utf-8 -*- import sys if __name__ == "__main__": lines = sys.stdin.readlines() for line in lines: print line.strip() 実行例と結果 $ ls ./pipe.py | ./pipe.py ./pipe.py