This file contains 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
F1::toggle_mute_teams() | |
toggle_mute_teams() { | |
winList := WinGetlist("ahk_exe Teams.exe",,,) | |
for window in winList { | |
if (WinGetTitle(window) != "Microsoft Teams Notification" and WinGetTitle(window) != "") { | |
WinActivate(WinGetTitle(window)) | |
Send("^+M") | |
sleep 20 ; sometimes it activates the new window before the sendkeys finishes, delay fixes it |
This file contains 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
#!/bin/bash | |
# d2zip zips each of all folders directly under | |
# the d folder in the same folder as the d2zip.sh. | |
# e.g.) | |
# . | |
# ├── d2zip.sh | |
# └── d/ | |
# ├── folderA/ -> ziped to folderA.zip | |
# └── folderB/ -> ziped to folderB.zip |
This file contains 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 <M5StickCPlus.h> | |
#include <MHZ19_uart.h> | |
// Ambientライブラリをインクルードする。 | |
#include "Ambient.h" | |
const int rx_pin = 36; | |
const int tx_pin = 26; | |
// WiFiアクセスポイントのSSIDとパスワードを設定する。 |
This file contains 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
// 追記:M5StickC Plusで必要なヘッダをインクルードする。 | |
#include <M5StickCPlus.h> | |
#include <MHZ19_uart.h> | |
// 変更:接続するピンの番号を変更する。 | |
const int rx_pin = 36; | |
const int tx_pin = 26; | |
MHZ19_uart mhz19; |
This file contains 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
MY_DIRNAME=$(dirname $0) | |
cd $MY_DIRNAME | |
# Check arguments | |
if [ $# -ne 1 ]; then | |
echo "Input an alias name as argument." | |
exit 1 | |
fi | |
# Set variables |
This file contains 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
Atom setting file |