Skip to content

Instantly share code, notes, and snippets.

@eashi
eashi / stream-setup.applescript
Last active August 8, 2020 15:06
Twitch Stream AppleScript
tell application "Firefox"
activate
end tell
tell application "System Events"
keystroke "n" using command down
set size of front window of application process "Firefox" to {1564, 1057}
set position of front window of application process "Firefox" to {0, 23}
keystroke "0" using command down
key code 24 using command down
@eashi
eashi / program.cs
Last active December 8, 2015 02:57
Put XBee Wifi in Command mode and send some AT commands
using System;
using System.Collections;
using System.Text;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Presentation.Shapes;
using Microsoft.SPOT.Touch;
@eashi
eashi / XbeeToCommandMode.cs
Last active December 6, 2015 11:16
Put XBee to Command Mode
try
{
byte[] bytes;
using (var stream = new OutputStream())
{
stream.Write("+++");
bytes = stream.ToArray();
}
Thread.Sleep(1000);
xBeeAdapter.Port.Write(bytes);