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
| #ifndef AHO_CORASICK_HEADER | |
| #define AHO_CORASICK_HEADER | |
| #include <queue> | |
| #include <unordered_map> | |
| #include <vector> | |
| #include <iostream> | |
| // Reference https://www.toptal.com/algorithms/aho-corasick-algorithm |
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
| section .data | |
| EXIT_SUCCESS equ 0 ; successful operation | |
| SYS_exit equ 60 ; call code for terminate | |
| linefeed db 10 | |
| stringRes db "Number of arguments: " | |
| section .text | |
| global _start |
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
| ; Simple program emulating UNIX cat | |
| ; | |
| ; Assembler: YASM | |
| ; | |
| ; Fernando Giannasi | |
| ; July 09, 2023 | |
| section .data | |
| SYS_EXIT equ 60 |
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
| ; Quicksort example in x86_64 Assembly - Linux | |
| ; Assembler: NASM | |
| ; Fernando B. Giannasi - jul/2023 | |
| section .data | |
| DATA dq 1, 9, 2, 8, 3, 7, 4, 6, 5, 0, 70, 69, 68, 67, 66, 65, 1, 9, 2, 8, 3, 7, 4, 6, 5, 0, 70, 69, 68, 67, 66, 65, 1, 9, 2, 8, 3, 7, 4, 6, 5, 0, 70, 69, 68, 67, 66, 65 | |
| DATA_LEN equ $ - DATA | |
| section .bss |
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
| use std::io; | |
| use itertools::interleave; | |
| type Board = [[char; 3]; 3]; | |
| fn main() { | |
| let mut array: Board = [[' '; 3]; 3]; | |
| instructions(); | |
| println!("--------------------\n"); |
OlderNewer