Skip to content

Instantly share code, notes, and snippets.


Emad Alashi eashi

View GitHub Profile
eashi / stream-setup.applescript
Last active Aug 8, 2020
Twitch Stream AppleScript
View stream-setup.applescript
tell application "Firefox"
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 / 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 / XbeeToCommandMode.cs
Last active Dec 6, 2015
Put XBee to Command Mode
View XbeeToCommandMode.cs
byte[] bytes;
using (var stream = new OutputStream())
bytes = stream.ToArray();