| Shortcut | Description |
|---|---|
ranger |
Start Ranger |
Q |
Quit Ranger |
R |
Reload current directory |
? |
Ranger Manpages / Shortcuts |
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
| # study stream aliases | |
| # Requires https://github.com/caarlos0/timer to be installed. spd-say should ship with your distro | |
| declare -A pomo_options | |
| pomo_options["work"]="45" | |
| pomo_options["break"]="10" | |
| pomodoro () { | |
| if [ -n "$1" -a -n "${pomo_options["$1"]}" ]; then | |
| val=$1 |
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
| #define _CRT_SECURE_NO_WARNINGS | |
| #include "Font.h" | |
| #include <tuple> | |
| using std::vector; | |
| using std::tuple; | |
| using std::get; | |
| void DrawPixel(i32 x, i32 y, u8 r, u8 g, u8 b); |
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
| /* | |
| * | |
| * Generate a png image from scratch | |
| * | |
| * Author: Christopher A | |
| * Date: July 29, 2021 | |
| * | |
| */ | |
| #include <stdio.h> |
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
| // egl_bar.c - self-contained example of a vertical bar moving across the screen. | |
| // compile with gcc -Wall -O0 -g -o egl_bar egl_bar.c log.c -lX11 -lEGL -lGLESv2 -lm | |
| #include <stdio.h> | |
| #include <math.h> | |
| #include <malloc.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <fcntl.h> |
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
| # vim:fileencoding=utf-8:ft=conf:foldmethod=marker | |
| #: Fonts {{{ | |
| #: kitty has very powerful font management. You can configure | |
| #: individual font faces and even specify special fonts for particular | |
| #: characters. | |
| font_family JetBrains Mono Medium | |
| bold_font JetBrains Mono Bold |
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
| #include "Mesh.h" | |
| Mesh::Mesh() | |
| { | |
| VAO = 0, VBO = 0, IBO = 0, indexCount = 0; | |
| } | |
| void Mesh::CreateMesh(GLfloat* vertices, unsigned int* indices, unsigned int numOfVertices, unsigned int numOfIndices) | |
| { | |
| indexCount = numOfIndices; |
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
| #include <SDL.h> | |
| #include <glad\glad.h> | |
| #include <nanovg.h> | |
| #define NANOVG_GL3_IMPLEMENTATION | |
| #include <nanovg_gl.h> | |
| #include <nanovg_gl_utils.h> // For framebuffer utilities not shown in this code | |
| #include <string> | |
| #include <iostream> | |
| #include <iomanip> // for setw |
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/share/BasiliskII/keycodes | |
| # | |
| # Basilisk II (C) 1997-2005 Christian Bauer | |
| # | |
| # This file is used to translate the (server-specific) scancodes to | |
| # Mac keycodes depending on the window server being used. | |
| # | |
| # The format of this file is as follows: | |
| # | |
| # sdl <driver string> |
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
| MAIN = triangle | |
| CC = g++ | |
| CFLAGS = -DLINUX -std=c++0x -Wall -Wextra -Werror -g | |
| LFLAGS = -lX11 -lGL | |
| SRCS = main.cpp | |
| OBJS = $(SRCS:.cpp=.o) | |
| DEPS = $(OBJS:.o=.d) | |
| all: $(MAIN) |
NewerOlder