Skip to content

Instantly share code, notes, and snippets.

View inoyakaigor's full-sized avatar
😎
😎

Igor «InoY» Zviagintsev inoyakaigor

😎
😎
View GitHub Profile
@inoyakaigor
inoyakaigor / New-TrayIconCustomContextMenu.ps1
Created October 24, 2025 09:43 — forked from SMSAgentSoftware/New-TrayIconCustomContextMenu.ps1
Script to create a system tray icon with a custom Windows 10-style context menu
##################################################################
## PS Script to create a custom WPF content menu for a tray app ##
##################################################################
# Add assemblies
Add-Type -AssemblyName System.Windows.Forms,PresentationFramework
# Create a WinForms application context
$appContext = New-Object System.Windows.Forms.ApplicationContext
@inoyakaigor
inoyakaigor / index.js
Created April 27, 2017 17:39 — forked from svnlto/index.js
FileReader Promise Helper
const readFile = (file) => {
let reader = new global.FileReader();
return new Promise((resolve, reject) => {
reader.onload = (event) => {
file.data = event.target. result;
resolve(file);
};
reader.onerror = () => {