Skip to content

Instantly share code, notes, and snippets.

@ovalnine
ovalnine / fish
Last active May 27, 2026 03:51
fzm
#!/usr/bin/env fish
# fzf_nav.fish — drop into ~/.config/fish/functions/
# Requires: fzf (>=0.38 for become()), fd, bat, tree, rg
#
# ctrl-r cycle: Files → Ripgrep → History → Files
# esc exit
#
# Files [F]: ctrl-h up · ctrl-l descend · ctrl-t toggle direct/recursive
# Ripgrep [R/R~]: ctrl-t toggle live · enter open at line
# History [H]: enter paste to prompt
@ovalnine
ovalnine / solution.js
Created November 14, 2020 04:34
The Labyrinth - Visuary
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
var inputs = readline().split(' ');
const R = parseInt(inputs[0]); // number of rows.
const C = parseInt(inputs[1]); // number of columns.
const A = parseInt(inputs[2]); // number of rounds between the time the alarm countdown is activated and the time the alarm goes off.
@ovalnine
ovalnine / RotatingPolygon.pde
Last active January 4, 2020 06:11
Rotating polygon animation downhill made in processing.
Polygon polygon;
Hill hill;
void setup() {
size(1000, 1000);
colorMode(HSB, 360, 100, 100);
noStroke();
frameRate(144);
hill = new Hill(height/4 - 200, height*3/4 - 200);
hill.setColor(color(50, 80, 100));