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
| filetype: jai | |
| detect: | |
| filename: "(\\.(jai)$)" | |
| rules: | |
| - identifier: "\\b[A-Z_][0-9A-Z_]+\\b" | |
| # This highlights PascalCase or Ada_Case types as types. | |
| # Jai does not enforce any code styles, so this is not part of the language |
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 <stdio.h> | |
| #include <unistd.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <sys/mman.h> | |
| // comment to disable mprotect | |
| #define DO_PROTECTION | |
| int main(void) { |
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
| from strutils import join | |
| type Level* = enum | |
| debug = "[\e[36mDEBUG\e[0m]: ", # Cyan | |
| warn = "[\e[33m WARN\e[0m]: ", # Yellow | |
| error = "[\e[31mERROR\e[0m]: ", # Red | |
| info = "[\e[34m INFO\e[0m]: ", # Blue | |
| ok = "[\e[32m OK\e[0m]: " # Green | |
| template toColorString*(input: SomeInteger|SomeFloat): string = "\e[33m" & $input & "\e[0m" |
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
| [colors] | |
| # Erosion theme by crshd, http://dotshare.it/dots/446/ | |
| background0: 181512FF | |
| background1: 181512FF | |
| background2: 181512FF | |
| background3: 181512FF | |
| background4: 181512FF | |
| selection_active: bea49222 | |
| selection_inactive: BEA49222 |