npm i -D ts-node typescript @types/node
npx ts-node life-terminal.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # wrapper_td.py | |
| # comment out: from diffusers.utils import DIFFUSERS_CACHE | |
| source venv/bin/activate | |
| pip install opencv-python | |
| pip install python-osc | |
| pip install transformers -U | |
| pip install diffusers -U | |
| pip install einops -U | |
| pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --force-reinstall "pandas>=2.0.0" | |
| pip install pillow -U --no-deps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| import Prelude | |
| import Effect (Effect) | |
| import Effect.Console (log) | |
| main | |
| :: Effect Unit | |
| main = do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Data.Record.Pairs where | |
| import Prelude | |
| import Data.Symbol (class IsSymbol) | |
| import Prim.RowList as RL | |
| class Pairs (xsA :: RL.RowList Type) (xsB :: RL.RowList Type) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plus: { | |
| name: "Plus" | |
| info: "Left and Right identity for Alt" | |
| parent: "alt" | |
| "package": "Control*" | |
| members: | |
| [ | |
| { name: "empty" | |
| , def: "f a" | |
| , laws : // FIXME: laws are incorrect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module FromHex exposing (..) | |
| import Color exposing (Color) | |
| hexToColor : String -> Result String Color | |
| hexToColor str = | |
| let | |
| digitToInt digit = | |
| case digit of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let games = Array.from(document.getElementsByClassName('gamebox')); | |
| function loadTitle(gamebox) { | |
| if (!gamebox) return null; | |
| return gamebox.querySelector('h2 b') ? gamebox.querySelector('h2 b').textContent.trim() : null; | |
| } | |
| function isNowPlaying(gamebox) { | |
| return gamebox.classList.contains('nowplaying'); | |
| } |
Based on this article: https://workspacevita.com/how-to-use-own-videos-screensavers-mac-catalina/
The difference is that the Aerial Configuration screens shown there are outdated.
First, you need to prepare the video file so it would be visible to Aerial. Due to security.
- Create
/Users/Shared/screensaversfolder. - Put a copy of your video file to
/Users/Shared/screensavers. - That should be enough.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module BinPack exposing (..) | |
| import Browser | |
| import Html exposing (Html, button, div, text, input) | |
| import Html.Attributes as H exposing (..) | |
| import Html.Events exposing (onClick) | |
| import Random | |
| import Svg exposing (..) | |
| import Svg.Attributes as S exposing (..) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main exposing (..) | |
| import Browser | |
| import Html exposing (Html) | |
| import Html as H | |
| type alias Flags = () |
NewerOlder