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
| # open powershell in administrator mode | |
| $mode = Read-host "How do you like your mouse scroll (0 or 1)?"; Get-PnpDevice -Class Mouse -PresentOnly -Status OK | ForEach-Object { "$($_.Name): $($_.DeviceID)"; Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters" -Name FlipFlopWheel -Value $mode; "+--- Value of FlipFlopWheel is set to " + (Get-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Enum\$($_.DeviceID)\Device Parameters").FlipFlopWheel + "`n" } | |
| # 0: default direction | |
| # 1: invert direction | |
| # Reboot to take effect |
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
| Write-Host @' | |
| Downloading fuan analyze... | |
| '@ | |
| $root_dir = "fuan.analyze" | |
| if (Test-Path $root_dir) { | |
| Remove-Item $root_dir -Force -Recurse | |
| } |
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
| #include "opencv2/opencv.hpp" | |
| #include "tensorflow/lite/interpreter.h" | |
| #include "tensorflow/lite/kernels/register.h" | |
| #include "tensorflow/lite/model.h" | |
| #include "tensorflow/lite/optional_debug_tools.h" | |
| #include <iostream> | |
| int main(int argc, char *argv[]) { | |
| // initailize tflite model | |
| const char *filename = "./best.tflite"; |
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
| # Let NetworkManager manage all devices on this system | |
| network: | |
| version: 2 | |
| renderer: NetworkManager | |
| ethernets: | |
| enp4s0: | |
| dhcp4: true | |
| enp5s0: | |
| addresses: | |
| - 192.168.80.1/24 |
OlderNewer