Skip to content

Instantly share code, notes, and snippets.

View ry755's full-sized avatar
🦊
a fox in your mind

Ry ry755

🦊
a fox in your mind
View GitHub Profile
@ry755
ry755 / ry.sh
Created May 16, 2021 05:20
Ry's shell profile
#!/bin/sh
# Ry's shell profile
# prompt colors (xterm-256color values)
# comment-out a color to disable it
COLOR_USER=014
#COLOR_AT=049
COLOR_HOST=013
COLOR_DIR=190
@ry755
ry755 / libnds-typing-effect.cpp
Last active April 24, 2021 01:43
Slow typing effect with libnds
#include <nds.h>
#include <stdio.h>
void printCharacterDelay(char c, unsigned int delay) {
do { swiWaitForVBlank(); } while (--delay);
putchar(c);
}
void printStringDelay(const char* str, unsigned int delay) {
for (char c; (c = *str++);) {