netsh trace start capture=yes report=no persistent=no maxSize=0 fileMode=single correlation=no traceFile=c:\tmp\xxxxx.etl
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
| namespace Sazare.Samples | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Runtime; | |
| using Sazare.Common; | |
| #region MulticoreJITSamples-01 |
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
| // ------------------------------------------------------------------------- | |
| // 以下のURLから拝借 | |
| // https://msdn.microsoft.com/ja-jp/library/hh925567(v=vs.110).aspx | |
| // ------------------------------------------------------------------------- | |
| namespace ShowInstalledDotNetPatches | |
| { | |
| using System; | |
| using Microsoft.Win32; |
http://qiita.com/Yinaura/items/30896618c438ac2a2e6a#_reference-bd1c7dafba2dd50b7470
Windows では ¥ と \ は同じものだが、Mac では別物
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
| # coding: utf-8 | |
| import pathlib | |
| from pprint import pprint as pp | |
| file_path = r'/Users/xxxxx/anaconda' | |
| p = pathlib.Path(file_path) | |
| if not p.exists(): | |
| print('存在しない') |
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
| # coding: utf-8 | |
| from typing import Iterable, Iterator, Any | |
| def chunks(sequence: Iterable, chunk_size: int = 1) -> Iterator[Any]: | |
| """ | |
| 指定されたシーケンスを指定されたチャンクに分割します. | |
| :param sequence: シーケンス |
In[28]: # 数値からバイナリへ
In[29]: a_number = 1024
In[30]: a_number.to_bytes(4, byteorder='big')
Out[30]:
b'\x00\x00\x04\x00'
In[31]: # バイナリから16進文字列へ
In[32]: _.hex()
Out[32]:
'00000400'- Windowsでは nodist というツールがある
- Chocolatey経由でインストールする
- インストールする前に、事前にインストールされているnode-jsをアンインストールしておく
- コマンドプロンプトで choco install nodist を打ち込む
- コマンドプロンプトで nodist latest を打ち込む
- node -v して最新バージョンなのを確認