File names should use snake_case.
hello_world.c
useful_header.h
Preprocessor include guards should be the same as the file name, replacing
| /* | |
| Original implementation written in JS: https://github.com/mapbox/tiny-sdf/blob/master/index.js | |
| Paper on distance transform algorithm: http://cs.brown.edu/people/pfelzens/papers/dt-final.pdf | |
| */ | |
| #define INF 1e+20 | |
| void _edt1d(unsigned char * grid, unsigned int offset, unsigned int stride, unsigned int length, unsigned char * f, unsigned char * v, float * z) | |
| { | |
| unsigned int q, k, r; |
| # This line of text should be included in your crontab file which can be edited by | |
| # running the following command: | |
| # sudo crontab -e | |
| # SERVER_SERVICE should be replaced with whatever service is running your web server, | |
| # for example 'apache2' or 'nginx' | |
| 0 */12 * * * root certbot renew --post-hook "service SERVER_SERVICE restart" |
| #!/bin/bash | |
| # This file is intended to be used to update a host's IP address | |
| # that uses the ZoneEdit DNS management service. | |
| # This script uses dig to obtain the network's current public IP | |
| # address which means it should be executed on a machine running | |
| # on the same network as your server. | |
| USERNAME=username | |
| PASSWORD=password |
| # www.georgemcdonagh.co.uk | |
| # This is the makefile that I'm currently using for an OpenGL/C++ project. | |
| # It's not the most elegant or full-proof makefile but it works for me! | |
| # Currently it has only been tested on Windows10 using the g++ compiler through mingw-w64 | |
| # Project directory tree should look something like: | |
| # Project Root/ | |
| # ├── bin/ |
| // A rough implementation of the Half Edged | |
| // Data Structure. A lot more could be added | |
| // on top! | |
| struct Vertex; | |
| struct HalfEdge; | |
| struct Face; | |
| struct Vertex { | |
| Edge* halfEdge; |