csrutil disable
Discover gists
blueprint: | |
# INTRODUCTION | |
name: Advanced Circadian Lighting | |
description: >- | |
This automation adjusts light brightness, temperature, and color hue, | |
based on presence, current time and sun position. | |
AXIS_UP ignore | |
AXIS_DOWN ignore | |
AXIS_LEFT ignore | |
AXIS_RIGHT ignore | |
MOUSE_BTN3 add volume 5 | |
MOUSE_BTN4 add volume -5 | |
MOUSE_BTN5 seek -5 | |
MOUSE_BTN6 seek 5 |
Enjoying this script? Consider buying me a beer/coffee!
First time setting up your Deck? You may enjoy my setup guide. It'll get you started on Emulation.
Main changes at initial release versus cdleveille's original script:
- Added zenity for a basic "GUI"
Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.
NOTE: This logic can be extended to more than two accounts also. :)
The setup can be done in 5 easy steps:
Accompanies OnCFD Newsletter #147: "It's a(n open-source) wrap"
Here are my "high-level" notes on building a command-line, mesh shrinkwrapper using Alpha Wrap 3 from CGAL.
I did this in an Ubuntu container on a Mac, but you could do similar in Windows Subsystem for Linux or native Ubuntu (or anywhere else that you can grab all of the dependecies).
See the accompanying article for more background 👋
import { useSyncExternalStore } from "react"; | |
// For more on the useSyncExternalStore hook, see https://react.dev/reference/react/useSyncExternalStore | |
// The code is almost identical to the source code of zustand, without types and some features stripped out. | |
// Check the links to see the references in the source code. | |
// The links are referencing the v5 of the library. If you plan on reading the source code yourself v5 is the best way to start. | |
// The current v4 version contains lot of deprecated code and extra stuff that makes it hard to reason about if you're new to this. | |
// https://github.com/pmndrs/zustand/blob/fe47d3e6c6671dbfb9856fda52cb5a3a855d97a6/src/vanilla.ts#L57-L94 | |
function createStore(createState) { |
body { | |
margin-top: 40px; /* This margin just makes the text easier to read. You can remove it if you want since it can mess with your other styles. */ | |
} | |
body::before { | |
content: "XS"; | |
color: red; | |
font-size: 2rem; | |
font-weight: bold; | |
position: fixed; |