Grabbing
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
| function xdg_activation --on-event fish_preexec | |
| set -l tmpdir /tmp | |
| set -q TMPDIR | |
| and set tmpdir $TMPDIR | |
| set filename (mktemp -u $tmpdir/.xdg-activation.XXXXXXXXXX) | |
| command mkfifo $filename | |
| niri msg action spawn -- sh -c "echo \$XDG_ACTIVATION_TOKEN > $filename" & | |
| set -gx XDG_ACTIVATION_TOKEN (cat $filename) | |
| command rm $filename | |
| end |
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
| binds { | |
| Alt+Tab { spawn "~/.config/niri/switcher.sh"; } | |
| } |
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
| class CursorView { | |
| private data: DataView | |
| private cursor: number = 0 | |
| constructor(data: DataView) { | |
| this.data = data; | |
| } | |
| getUint8() { return this.data.getUint8((this.cursor += 1) - 1); } | |
| getUint16() { return this.data.getUint16((this.cursor += 2) - 2, true); } |
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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
| Play this game by pasting the script in http://www.puzzlescript.net/editor.html |
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
| from __future__ import annotations | |
| from typing import Iterator | |
| import sys | |
| from itertools import count, product, starmap | |
| import numpy as np | |
| from numpy.typing import NDArray | |
| import imageio |
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
| { | |
| "Iced Sandbox": { | |
| "prefix": "sandbox", | |
| "body": [ | |
| "use iced::{widget::text, Element, Sandbox, Settings, Theme};\n", | |
| "fn main() -> iced::Result {", | |
| "\tApp::run(Settings::default())", | |
| "}\n", | |
| "#[derive(Debug)]", | |
| "struct App {}\n", |
NewerOlder


