Skip to content

Instantly share code, notes, and snippets.

View mattorb's full-sized avatar
🎯
Always trying to find more time for reading and experiments.

Matt Smith mattorb

🎯
Always trying to find more time for reading and experiments.
View GitHub Profile
@pholser
pholser / regex-crossword.mzn
Created March 17, 2021 02:27
MiniZinc model to solve a regex crossword
% https://jimbly.github.io/regex-crossword/
enum LETTER = {
A, B, C, D, E, F, G, H, I, J, K, L, M,
N, O, P, Q, R, S, T, U, V, W, X, Y, Z
};
array[1..7] of var LETTER: row1;
array[1..8] of var LETTER: row2;
array[1..9] of var LETTER: row3;
@mergesort
mergesort / run_in_xcode.scpt
Last active April 10, 2025 13:11
Cursor -> Xcode -> Cursor AppleScript
tell application "System Events"
if (name of processes) contains "Xcode" then
-- Check if Xcode is already the active/focused application
if (name of first application process whose frontmost is true) is not "Xcode" then
tell application "Xcode 16.2 (Beta)"
activate
delay 0.25 -- Wait for Xcode to become active
end tell
end if