- Flexbox explained with gifs: https://medium.freecodecamp.org/d280cf6afc35
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
#!/bin/bash | |
#details: this file is intended to be called from inside generate_csv.sh | |
#usage: ./file_info.sh <Path to root> <Path to file> <blank lines int> <comment lines int> <code lines int> | |
#example "<ABSOLUTE_PATH>/../../" | |
OFFSET=$1 # how to get to the directory to search | |
#example:'Source/Engine/main.cpp' | |
SOURCEFILE=${2//###/ } |
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 <iostream> | |
#include <ostream> | |
#include <string> | |
#include <vector> | |
class Matrix | |
{ | |
// Helper struct for comma initializer list insertion | |
struct Matrix_CommaInitializer |
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 <iostream> | |
#include <string> | |
#include <vector> | |
#define FIXED_POINT_OFFSET 11 | |
// SLOW | |
#define FLOAT_TO_FIXED(x) (static_cast<int>(x * INT_TO_FIXED(1))) | |
#define FLOAT_FROM_FIXED(x) (static_cast<double>(x) / INT_TO_FIXED(1)) |
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
// http://coliru.stacked-crooked.com/a/68d80806be077278 | |
#include <iostream> | |
#include <string> | |
#include <cstdlib> //rand | |
#include <vector> | |
#include <algorithm> | |
#include <cassert> | |
template<typename T> |
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
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
# Runtime data | |
pids | |
*.pid | |
*.seed | |
*.pid.lock |
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
#if UNITY_EDITOR | |
[CanEditMultipleObjects] | |
[CustomEditor(typeof(BaseClass), true)] | |
public class BaseClassEditor : Editor | |
{ | |
public override void OnInspectorGUI() | |
{ | |
var t_baseTarget = typeof(BaseClass); | |
var t_baseEditor = typeof(BaseClassEditor); | |
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
SERVER: | |
TEST:2 (8 threads), RUNS:10,000 | |
$ time ./run_multiple.sh gcc0-skeleton.exe 2 10000 1000 | |
Testing executable gcc0-skeleton.exe: | |
- Running Test #2 | |
- Iterations: 10000 | |
- Printing every 1000th iteration | |
iteration: 1000 |
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
Camera | |
- Cursor keys or right click: pan | |
- M+K: Zoom | |
Waypoints | |
- Double click: place Waypoint | |
- Shift click: override default pathing | |
- Backkspace: remove waypoints in order | |
- = (equals sign): delete last 10 commands |