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
// https://onlinegdb.com/7BVWzlDPv | |
#include <iostream> | |
#include <type_traits> | |
// Declare the derived config we want to produce. | |
struct DerivedConfig { | |
float derived_value; | |
}; |
![mathlet.gif](https://gist.github.com/bdero/c1b1aa5f48f24952cd4a1025a5c22937/raw/8dc5a27da99f955d2ab8203cbc7d3bfbfb7df6df/mathlet.gif)
![mountains.gif](https://gist.github.com/bdero/45938c86b53991151bd058e51bfc9063/raw/396758f60837e82e8c58bb6fcdab54006a85db7a/mountains.gif)
![action52.gif](https://gist.github.com/bdero/50e5cf1ca859bb9c56fcfbaa5a4b4f8f/raw/2c70aeab5935d695c05fbddade4ca1f6c8cfdcaa/action52.gif)
![netwalk.gif](https://gist.github.com/bdero/d8fa1a0dac923cf340f7a6558e655cbd/raw/9c026efa335991738c4acba1ec1b37ad45f5e950/netwalk.gif)
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
CompileFlags: | |
Add: [ | |
"/std:c++20", | |
"-std=c++20", | |
] |
![imgui.gif](https://gist.github.com/bdero/ed3e6ce6fd1c793a9724d5778b298313/raw/ba9c5481b4c6ef072c5e948776ad473e440629d9/imgui.gif)
![sailboat.gif](https://gist.github.com/bdero/df03a45bfbe551d64c87a525fb8abcde/raw/74b9bbeeff574b3d7bfb8baa9b2def9a95000ec9/sailboat.gif)
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
/* | |
* ImGui Particle Text (deobfuscated) | |
* ================================== | |
* Done as part of the "ImDrawList coding party" challenge: | |
* https://github.com/ocornut/imgui/issues/3606#issuecomment-734636054 | |
* https://twitter.com/algebrandon/status/1332182010593304576 | |
*/ | |
#include <algorithm> | |
// 2D rotation formula. This demo uses Euler angles, and so this formula is used |
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
use std::env; | |
use std::fs::File; | |
use std::io::prelude::*; | |
use std::io::stdin; | |
fn get_program_from_args() -> Option<String> { | |
let mut args = env::args(); | |
args.next(); // Ignore the first argument, which is always the program name | |
let mut program: Option<String> = None; |
NewerOlder