Skip to content

Instantly share code, notes, and snippets.

Avatar

Emad Alashi eashi

View GitHub Profile
@eashi
eashi / stream-setup.applescript
Last active Aug 8, 2020
Twitch Stream AppleScript
View stream-setup.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 Dec 8, 2015
Put XBee Wifi in Command mode and send some AT commands
View program.cs
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 Dec 6, 2015
Put XBee to Command Mode
View XbeeToCommandMode.cs
try
{
byte[] bytes;
using (var stream = new OutputStream())
{
stream.Write("+++");
bytes = stream.ToArray();
}
Thread.Sleep(1000);
xBeeAdapter.Port.Write(bytes);