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 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 |
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
| /** | |
| * 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. |
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
| 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)); |