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
| ;;;; Cheatsheet for Common Lisp | |
| ;;; REFERENCES | |
| ;;; - Info: https://anticrisis.github.io/2017/09/04/how-i-got-started-with-common-lisp-2017.html | |
| ;;; - Learning Common Lisp: | |
| ;;; http://www.newthinktank.com/2015/07/learn-lisp-one-video/ | |
| ;;; https://lispcookbook.github.io/cl-cookbook/ | |
| ;;; (Advanced) http://www.gigamonkeys.com/book/ | |
| ;;; - Exercises: | |
| ;;; http://www.4clojure.com/problems |
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
| // Add content here |
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
| <?php | |
| // Call this script as: http://localhost/kp-test/backend/php_cheatsheet.php?id=100 | |
| // INCLUDING OTHER FILES: | |
| # include 'sayhello.php'; | |
| header('Content-type: text/plain'); | |
| define('PI', 3.141592); |
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
| #pragma once | |
| // Proof of concept so I know how a neural network is built under the hood. | |
| // Author: Tom Quareme | |
| // TODO: https://www.youtube.com/watch?v=MJ_7qe--cvo 2-2 | |
| #include <iostream> | |
| #include <vector> | |
| #include <cmath> |
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
| // Data Oriented Entity Component System | |
| // Author: Tom Quareme | |
| // Copyright 2018 | |
| #pragma once | |
| #include <iostream> | |
| #include <cstdio> | |
| #include <ctime> | |
| #include <map> |
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
| #pragma once | |
| // Math library for 2D and 3D games | |
| // Coordinate systems are exclusively right-handed! | |
| // SIMD optimization might be added in the future. | |
| // | |
| // Author: Tom Quareme | |
| #include <cmath> |
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 "core.h" | |
| namespace tqECS | |
| { | |
| tqECS::TransformComponentSystem::TransformComponentSystem() | |
| { | |
| std::srand(std::time(NULL)); | |
| } | |
| void tqECS::TransformComponentSystem::Allocate(unsigned int allocatedCount) |
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 <string.h> | |
| int foo(void) | |
| { | |
| /* Declarations and allocations */ | |
| int result = 0; | |
| char *buffer1 = (char *)malloc(100 * sizeof(char)); | |
| int *buffer2 = (int *)malloc(100 * sizeof(int)); | |
| float *buffer3 = (float *)malloc(100 * sizeof(float)); |