Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| #lang racket/base | |
| (require racket/gui/base | |
| racket/class | |
| racket/list | |
| racket/string) | |
| (define program-name "regexp-checker") | |
| (define program-version "v0.1") | |
| (define version-message |
| // | |
| // Author: Jonathan Blow | |
| // Version: 1 | |
| // Date: 31 August, 2018 | |
| // | |
| // This code is released under the MIT license, which you can find at | |
| // | |
| // https://opensource.org/licenses/MIT | |
| // | |
| // |
| var GB2260 = { | |
| "110000": "北京市", | |
| "110100": "北京市市辖区", | |
| "110101": "北京市东城区", | |
| "110102": "北京市西城区", | |
| "110103": "北京市崇文区", | |
| "110104": "北京市宣武区", | |
| "110105": "北京市朝阳区", | |
| "110106": "北京市丰台区", | |
| "110107": "北京市石景山区", |
| // A simple quickref for Eigen. Add anything that's missing. | |
| // Main author: Keir Mierle | |
| #include <Eigen/Dense> | |
| Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d. | |
| Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols. | |
| Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd. | |
| Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major. | |
| Matrix3f P, Q, R; // 3x3 float matrix. |
| #define _WIN32_WINNT 0x0600 | |
| #include <stdio.h> | |
| #include <windows.h> | |
| #include <fileapi.h> | |
| #ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING | |
| #define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 | |
| #endif |
| /* Sample file using the LLVM coding standard | |
| http://llvm.org/docs/CodingStandards.html | |
| General rules: | |
| - Indents are two spaces. No tabs should be used anywhere. | |
| - Each line must be at most 80 characters long. | |
| - Use C-style comments when writing C code | |
| - File names should be PascalCase.c |