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
| # This is a sample of what a front-end Crystal application could look like, for code review. | |
| # The design was inspired by React, Angular and Flutter and it should be very performing and compact. | |
| # If this is ever implemented, it will use WebAssembly to run Crystal code, together with | |
| # some JavaScript bindings to access the DOM. | |
| class TodoData | |
| property text : String | |
| property? done = false | |
| def initialize(@text) |
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
| # This is a sample of what a front-end Crystal application could look like, for code review. | |
| # The design was inspired by React, Angular and Flutter and it should be very performing and compact. | |
| # If this is ever implemented, it will use WebAssembly to run Crystal code, together with | |
| # some JavaScript bindings to access the DOM. | |
| class TodoData | |
| property text : String | |
| property? done = false | |
| def initialize(@text) |
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 <fcntl.h> | |
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <sys/mman.h> | |
| #include <sys/stat.h> | |
| off_t total_size = 0; | |
| char* mmap_file(const char* name) { |
OlderNewer