1 2 3 4 5 6 7 8 9 |
$files = Get-ChildItem -File -Recurse -Include *.c, *.h $files.foreach{ $count = ((Get-Content $_).foreach{if($_ -match "/[/\*]\!"){$matches}}).Count if ($count -gt 0) { Write-Host $count $_.Name } } |
1 2 3 4 5 6 7 8 9 |
$files = Get-ChildItem -File -Recurse -Include *.c, *.h $files.foreach{ $count = ((Get-Content $_).foreach{if($_ -match "/[/\*]\!"){$matches}}).Count if ($count -gt 0) { Write-Host $count $_.Name } } |
DLL(Dynamic Link Library)の内部と外部でグローバル変数を共有する(双方からアクセスする)方法
1 |
__declspec(dllexport) int my_array[7]; |
1 2 3 |
extern "C" { __declspec(dllexport) int my_array[7]; } |
キーボード操作(矢印キー)でアプリケーションソフトのウィンドウ(操作画面)を移動(move)させる方法。
Alt + Space ⇒ 移動(M)
JavaScriptベースのプレゼンツール Reveal.js の Visual Studio Code 拡張機能
vscode上でのプレビューだけでなく、vscodeの中からhttpdをローカルに立ち上げて、Webブラウザでスライドを表示できる。
PowerShellでコマンドの途中で改行する方法
⇒ バッククォート `
を継続行の行末に追加する 続きを読む
git push コマンド詳細
1 |
$ git push <リモートリポジトリ名> <ローカルリポジトリのブランチ名>:<リモートリポジトリのブランチ名> |
1 |
$ git push origin foo:bar |
ローカルリポジトリの foo ブランチをリモートリポジトリ origin の bar ブランチへ pushする
1 |
$ git push origin master:master |
ローカルリポジトリの master ブランチをリモートリポジトリ origin の master ブランチへ pushする
続きを読む
型番 | 金額 |
---|---|
Jetson Nano Developer Kit | 12,300 |
24W級ACアダプタ 5V 4A プラグ規格:外径5.5mm/内径2.1mm/センタープラス | 1,280 |
スイッチングACアダプター 5V 3A USB micro-B オス | 700 |
ジャンパーピン 2.54mmピッチ (25個入り) | 100 |
SanDisk 128GB UHS-Ⅰ(U3/A2/V30)対応 160MB/s | 2,980 |
1 |
$ sudo apt install avahi-daemon |
1 |
$ sudo /etc/init.d/avahi-daemon stop |
1 |
$ sudo /etc/init.d/avahi-daemon start |
1 |
$ sudo systemctl disable avahi-daemon.service |
1 |
$ sudo systemctl enable avahi-daemon.service |