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
macro_rules! run { | |
($a:expr) => {{ | |
println!("{:?}", $a); | |
}}; | |
} | |
#[derive(Debug)] | |
enum UiNode<'a> { | |
Window { content: &'a UiNode<'a> }, | |
Column { content: Vec<UiNode<'a>> }, |
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 call auto() in console for each problem in programming track. | |
// Use this extension to load this script | |
// https://microsoftedge.microsoft.com/addons/detail/koccodmekleicmjpnelamemnhkpbkibc | |
function solve(code) { | |
var editor_id = $(".ace_editor.ace_dark")[0].id; | |
var editor = ace.edit(editor_id); | |
editor.$blockScrolling = Infinity; |
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
#define MAT(name, T, n, d) \ | |
vector<vector<T>> name(n, vector<T>(n, d)) | |
#define MAT2(name, T, n, m, d) \ | |
vector<vector<T>> name(n, vector<T>(m, d)) | |
#define DBG(e) \ | |
cout << #e << " = " << (e) |