This file contains 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
// Converts degrees to radians. | |
#define degreesToRadians(angleDegrees) (angleDegrees * M_PI / 180.0) | |
// Converts radians to degrees. | |
#define radiansToDegrees(angleRadians) (angleRadians * 180.0 / M_PI) |
This file contains 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
/* Just create out of frustration, it's hard for me to scan through the line to add an item. | |
For example I want to add react-bootstrap component "Alert". | |
It's easier to use the proposed version to scan through and add in. | |
Also it can be sorted, if not multi line. | |
Might need to some thinking on the syntax. */ | |
// Current | |
import { Breadcrumb } from 'components'; | |
import connectData from 'helpers/connectData'; | |
import { |
This file contains 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
void consoleLogHelper() {}; | |
template <typename T> | |
void print(T t) { | |
std::cout << t << " "; | |
} | |
template <typename T, typename...Ts> | |
void consoleLogHelper(T &&first, Ts&&... rest) { | |
// print it |