Skip to content

Instantly share code, notes, and snippets.

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
#!/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
#include <M5StickCPlus.h>
#include <MHZ19_uart.h>
// Ambientライブラリをインクルードする。
#include "Ambient.h"
const int rx_pin = 36;
const int tx_pin = 26;
// WiFiアクセスポイントのSSIDとパスワードを設定する。
// 追記:M5StickC Plusで必要なヘッダをインクルードする。
#include <M5StickCPlus.h>
#include <MHZ19_uart.h>
// 変更:接続するピンの番号を変更する。
const int rx_pin = 36;
const int tx_pin = 26;
MHZ19_uart mhz19;
@shoarai
shoarai / apk.command
Created September 17, 2016 12:24
Make APK of Ionic application
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
Atom setting file