Skip to content

Instantly share code, notes, and snippets.

@martinandersen
martinandersen / mex_no_xcode.md
Last active October 25, 2022 02:34
How to build MEX files with MATLAB on macOS without installing Xcode

Building MEX files with MATLAB on macOS without installing Xcode

MATLAB requires Xcode to build MEX files on macOS: if only the Command Line Tools are available, MATLAB complains that "Xcode is installed, but its license has not been accepted."

To build MEX files with only the Command Line Tools installed, open Terminal and execute the following command to create a property list:

defaults write com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense 12.0
@martinandersen
martinandersen / script.user.js
Last active December 8, 2018 23:44 — forked from gauss256/script.user.js
A GreaseMonkey/TamperMonkey version of the `math-with-slack` script.
// ==UserScript==
// @name MathJax on Slack
// @namespace https://github.com/fsavje/math-with-slack
// @description Renders math on Slack using MathJax. Based on github:fsavje/math-with-slack.
// @include https://*.slack.com/messages/*
// @version 1
// @grant none
// ==/UserScript==
// See: https://github.com/fsavje/math-with-slack