by Augusto Goulart - April 03, 2019
blog jekyll update
Shall I welcome you to this site, make your way through the posts and you’ll find many useless stuff, that’s because the current content in here is intended for tests purposes only.
As one may see, this is located in the _posts directory. Take a look at the source for this post to get an idea about how it works.
_posts
Some code from my ongoing projects:
#if defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__) || defined (__MINGW64__) || defined(__CYGWIN__) #undef __WINDOWS__ #define __WINDOWS__ 1 #endif #if defined(__ILP32__) || defined(_ILP32) || defined(__i386__) || defined(_M_IX86) || defined(_X86_) #undef __X86_ARCH__ #define __X86_ARCH__ 1 #endif typedef unsigned char ubyte_t; #if defined(__X86_ARCH__) typedef uint32_t ulong_t; #else typedef uint64_t ulong_t; #endif
size_t file_find_size(const char* filename) { struct STAT file_status; /* get file size */ if (!STAT(filename, &file_status)) return file_status.st_size; else return 0; }
Go to Jekyll docs for more info on how to destroy your enemies.