Skip to content

Instantly share code, notes, and snippets.

View kevin-d-omara's full-sized avatar

Kevin O'Mara kevin-d-omara

View GitHub Profile
@kevin-d-omara
kevin-d-omara / AddCursorToEveryInstanceOfHighlightedText.py
Created January 18, 2024 23:31
AddCursorToEveryInstanceOfHighlightedText.py
"""
# Summary
Add a separate cursor to every place where the currently highlighted text is found.
# Usage
1. Select a piece of text.
1. On the toolbar, click: Plugins > Python Script > Scripts > AddCursorToEveryInstanceOfHighlightedText
# Requirements
1. Notepad++ v8.6 or higher. (Otherwise, manually enable Multi-Select in Settings > Preferences > Editing).
@kevin-d-omara
kevin-d-omara / user.xml
Last active April 3, 2022 04:17
Logitech Performance Mouse MX - Windows 10 desktop switching shortcuts
<!--
Logitech Performance Mouse MX button mappings
- Close SetPoint
- Place this file in "C:\Users\%USERNAME%\appdata\Roaming\Logitech\SetPoint"
- Restart SetPoint
- Original guide: https://tinkertry.com/logitech-multiple-desktop-mouse-mappings-for-windows-10
Mapping:
- Scroll Wheel Left/Right == Browser Back/Forward
- Thumb Button == Task View (Win + Tab)
- Forward Arrow == Tab Switcher (Alt + Tab)
@kevin-d-omara
kevin-d-omara / MakeAutoSubplot.m
Last active December 12, 2017 04:53
Create subplots dynamically, great for prototyping.
function makePlot = MakeAutoSubplot(numRows, numCols)
% Creates a new subplot each time 'makePlot()' is called. Subplots are
% arranged in a numRows-by-numCols grid. See Matlab documentation on
% subplot for details.
%
% Uses a closure of 'numRows' & 'numCols' to take care of bookeeping.
%
% Return:
% makePlot - function pointer; calling it creates the next subplot
%
@kevin-d-omara
kevin-d-omara / AddUbuntuBashToContextMenu.reg
Last active April 2, 2022 21:51
Add Ubuntu Bash to the context menu for Windows 10.
Windows Registry Editor Version 5.00
; * Adds Ubuntu Bash to the extended context menu (shift + right-click).
; * If you prefer the regular context menu (right-click),
; delete both lines containing <"Extended"="">.
; Context menu for right-clicking the background of a directory or the desktop.
[HKEY_CLASSES_ROOT\Directory\Background\shell\ubuntubash]
@="Open Ubuntu Bash"
"Icon"="C:\\Program Files\\WindowsApps\\CanonicalGroupLimited.UbuntuonWindows_1604.2017.922.0_x64__79rhkp1fndgsc\\images\\icon.ico"