Automator のシェルスクリプトアクションで使えるサンプル集です。「アプリケーション」や「サービス」を作成するときにどうぞ。
- 製作者: mattintosh
- ブログ: http://mattintosh.blog.so-net.ne.jp
| taskkill /F /IM LogiOverlay.exe | |
| taskkill /F /IM LogiOptionsMgr.exe | |
| timeout /t 5 /nobreak > nul | |
| rem ここは各々 | |
| "C:\Program Files\Logicool\LogiOptions\LogiOptions.exe" |
| using System; | |
| using System.Drawing.Imaging; | |
| using System.IO; | |
| using System.Runtime.InteropServices; | |
| using System.Windows.Controls; | |
| using System.Windows.Media.Imaging; | |
| namespace YourNamespace | |
| { | |
| public class UAC |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266HTTPClient.h> | |
| // Network | |
| const char *ssid = "Your SSID Here"; | |
| const char *pswd = "Your Password Here"; | |
| const char *commandIOPath = "http://withoutssl.yutokun.com/ac-switcher/command-io-test.php"; | |
| void setup() | |
| { |
Automator のシェルスクリプトアクションで使えるサンプル集です。「アプリケーション」や「サービス」を作成するときにどうぞ。
| using UnityEngine; | |
| public class SmoothFollow : MonoBehaviour | |
| { | |
| [SerializeField] Transform followTarget; | |
| [SerializeField, Range(0f, 1f)] float followFactor = 0.05f; | |
| [SerializeField, Header("Position")] bool followPosition = true; | |
| [SerializeField] Vector3 positionOffset = Vector3.forward; | |
| Vector3 prevPosition; |