Skip to content

Instantly share code, notes, and snippets.

View ngynkvn's full-sized avatar
🐈

Kevin Nguyen ngynkvn

🐈
  • New York
View GitHub Profile
@ngynkvn
ngynkvn / ANSI.md
Created October 3, 2024 06:59 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
#include "Search.h"
#include <iostream>
namespace Search
{
std::vector<Coord> dirRook = {Coord(0, 1), //The 4 Ray directions rooks can slide to (raymove)
Coord(0, -1),
Coord(1, 0),
Coord(-1, 0)};
@ngynkvn
ngynkvn / parser.cpp
Last active September 20, 2022 21:44
not sure what this was for
enum TOKEN_TYPE
{
TOK_OPAREN,
TOK_CPAREN,
TOK_OPERATOR,
TOK_FOR,
TOK_BEGIN,
TOK_END,
TOK_DELIMITER,