A comprehensive guide to organizing and managing effects in terminal applications using tachyonfx's EffectManager with custom registry patterns.
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
use std::cell::RefCell; | |
use std::hash::{BuildHasher, Hash, Hasher}; | |
use foldhash::fast::RandomState; | |
use ratatui::buffer::{Buffer, Cell}; | |
use ratatui::layout::{Position, Rect}; | |
/// Caches and replays ratatui buffer changes for optimized rendering | |
/// | |
/// WormBuffer records only the cells that change during widget rendering, allowing | |
/// expensive layouts to be computed once and then replayed efficiently. On first |
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
#!/usr/bin/env zsh | |
# | |
# Screen Recording Script | |
# ---------------------- | |
# | |
# Records a selected window on your X11 display using FFmpeg. The script prompts | |
# you to click on a window, then automatically starts recording it to ${PWD}/output.mp4. | |
# | |
# Prerequisites: |
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
package sift.template.sandbox | |
import com.github.ajalt.mordant.rendering.TextStyles.bold | |
import com.github.ajalt.mordant.rendering.TextStyles.inverse | |
import sift.core.dsl.Classes | |
import sift.core.dsl.type | |
import sift.core.dsl.template | |
import sift.core.entity.Entity | |
import sift.core.graphviz.Dot | |
import sift.core.graphviz.Shape |
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
# VERBOSE | |
regexp=\sV/[\w.]+: | |
colours=bold black | |
- | |
# DEBUG | |
regexp=\sD/[\w.]+: | |
colours=green | |
- | |
# INFO | |
regexp=\sI/[\w.]+: |
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
package sift.instrumenter.deprecated | |
import sift.core.entity.Entity | |
import sift.core.InstrumenterService | |
import sift.core.api.Action | |
import sift.core.api.Dsl | |
import sift.core.api.Dsl.classes | |
import sift.core.entity.EntityService | |
import sift.core.tree.EntityNode | |
import sift.core.tree.Tree |
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
package org.bouncycastle.crypto; | |
/** | |
* A wrapper class that allows block ciphers to be used to process data in | |
* a piecemeal fashion. The BufferedBlockCipher outputs a block only when the | |
* buffer is full and more data is being added, or on a doFinal. | |
* <p> | |
* Note: in the case where the underlying cipher is either a CFB cipher or an | |
* OFB one the last block may not be a multiple of the block size. |
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
pipeline { | |
agent { | |
docker { | |
image 'junkdog/mvn-3-jdk8' | |
// -u root for /root/.m2 to be resolved | |
args '-v /root/.m2:/root/.m2 -u root' | |
} | |
} | |
options { | |
skipStagesAfterUnstable() |
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
#!/usr/bin/env bash | |
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\ | |
function register_clang_version { | |
local version=$1 | |
local priority=$2 | |
update-alternatives \ | |
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \ |
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
// https://twitter.com/Donzanoid/status/903424376707657730 | |
vec3 Geoffrey(float t) { | |
vec3 r = t * 2.1 - vec3(1.8, 1.14, 0.3); | |
return 1.0 - r * r; | |
} |
NewerOlder