Skip to content

Instantly share code, notes, and snippets.

View eldoy's full-sized avatar

Vidar Eldøy eldoy

View GitHub Profile
@eldoy
eldoy / toggle-ventura-sidecar.jxa.js
Created August 26, 2023 10:51 — forked from stephancasas/toggle-ventura-sidecar.jxa.js
Toggle sidecar or screen mirroring from Control Center in macOS Ventura
#!/usr/bin/env osascript -l JavaScript
/**
* -----------------------------------------------------------------------------
* Activate Sidecar/Screen Mirroring from Control Center
* -----------------------------------------------------------------------------
*
* Created on February 17, 2023 by Stephan Casas
* Updated on May 18, 2023 by Stephan Casas
*
@eldoy
eldoy / underscore-1.3.3-templates.js
Created November 11, 2020 12:59 — forked from marlun78/underscore-1.3.3-templates.js
Underscore.js templates as a standalone implementation
/*!
Underscore.js templates as a standalone implementation.
JavaScript micro-templating, similar to John Resig's implementation.
Underscore templates documentation: http://documentcloud.github.com/underscore/#template
Modifyed by marlun78
*/
(function () {
'use strict';