$ git fetch origin
$ git log HEAD..FETCH_HEAD
$ git diff HEAD..FETCH_HEAD
$ git merge FETCH_HEAD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using CommandLine; | |
namespace CommandLineArg | |
{ | |
class Program | |
{ | |
public class Options | |
{ | |
// shortnameで短いオプション名。(-v)longnameで長いオプション名を指定できる。(--versioninfo) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
asyncio のサンプルです。 | |
asyncio.Queueを使った producer-consumer パターンのサンプル。 | |
""" | |
import asyncio | |
import contextlib | |
import itertools | |
import random | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
async def factorial(id: int, number: int): | |
f = 1 | |
for i in range(2, number + 1): | |
print(f'[{id}]: compute {i} ...') | |
await asyncio.sleep(1) | |
f *= i | |
print(f'[{id}]: factorial {number} = {f}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------ | |
# イベントループを別スレッドで動作させて | |
# メインスレッドは生かすサンプル | |
# | |
# asyncio をつかった処理にて、別スレッドから | |
# イベントスレッドに対して処理を行う場合 | |
# イベントスレッド自体がスレッドセーフではないため | |
# 専用のメソッドを利用する必要がある | |
# | |
# - ev_loop.call_soon_threadsafe() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// REF: https://blogs.msdn.microsoft.com/pfxteam/2012/01/20/await-synchronizationcontext-and-console-apps/ | |
/// REF: https://qiita.com/ousttrue/items/66def43267329bc132ff | |
/// </summary> | |
internal sealed class SingleThreadSynchronizationContext : SynchronizationContext | |
{ | |
private readonly BlockingCollection<KeyValuePair<SendOrPostCallback, object>> _queue; | |
public SingleThreadSynchronizationContext() | |
{ |
- Why my WPF application becomes slow after a while of minimizing?
- 第2回 Visual Studioのプロファイラを使って性能評価を行う
1に上げた参考情報の回答部分を引用と拙訳
This is not a property of WPF, it's a property of virtual memory.
以下のページの情報が有効だった。感謝。
Visual Studio 2017 - What happened to Expression interactions?
Use the Visual Studio 2017 installer to install "Blend for Visual Studio SDK for .NET", which you can find on the "Individual components" page, under the "SDKs, libraries, and frameworks" heading.
まとめると以下。
- VS2017から
Blend SDK
のインストールは、 インストーラーの個別のコンポーネント
タブの方にある - デフォルトでチェックONとなっていない
以下の情報がとても役にたった。感謝!
以下、自分がうまくいった方法
- Microsoft Azure で Windows 10 のVMを作成
- 接続して日本語環境の設定を一通り行う。(言語設定や時刻設定など)
- 一旦ログオフしておく (もしくはAzureのポータルからVMごと再起動) 4. Parallels Client をダウンロードしてインストール