Skip to content

Instantly share code, notes, and snippets.

View nonoroazoro's full-sized avatar

Nonoroazoro nonoroazoro

View GitHub Profile
@nonoroazoro
nonoroazoro / Open with VSCode.vbs
Last active November 1, 2023 21:25
Add "Open with VSCode" to windows explorer context menu of folders and files - windows 7, 10 (auto elevate UAC)
On Error Resume Next
' 1. Change this to your Visual Studio Code file path.
path = "D:\Program Files\VSCode\Code.exe"
' 2. Optional - Change keyboard shortcut here, for example: "F" if you like.
shortcut = "F"
Sub ElevateUAC
If Not WScript.Arguments.Named.Exists("elevated") Then
@nonoroazoro
nonoroazoro / EventEmitter.js
Created August 23, 2016 11:03
A Simple EventEmitter Implemented by JavaScript (ES6)
class EventEmitter
{
constructor()
{
this._listeners = new Map();
}
addListener(p_eventName, p_listener)
{
if (p_listener && typeof p_listener === "function")
@nonoroazoro
nonoroazoro / Open with Sublime Text.vbs
Last active September 1, 2021 02:07
Add "Open with Sublime Text" to windows explorer context menu of folders and files - windows 7, 10 (auto elevate UAC)
On Error Resume Next
' 1. Change this to your Sublime Text file path.
path = "C:\Program Files\Sublime Text\sublime_text.exe"
' 2. Optional - Change keyboard shortcut here, for example: "F" if you like.
shortcut = "Q"
Sub ElevateUAC
If Not WScript.Arguments.Named.Exists("elevated") Then