Skip to content

Instantly share code, notes, and snippets.

View pavi2410's full-sized avatar
:octocat:
Githubbing

Pavitra Golchha pavi2410

:octocat:
Githubbing
View GitHub Profile
@pavi2410
pavi2410 / playground.rs
Created October 5, 2022 07:31 — forked from rust-play/playground.rs
DSL for Declarative UI library in Rust
macro_rules! run {
($a:expr) => {{
println!("{:?}", $a);
}};
}
#[derive(Debug)]
enum UiNode<'a> {
Window { content: &'a UiNode<'a> },
Column { content: Vec<UiNode<'a>> },
@pavi2410
pavi2410 / skillhack.js
Last active November 17, 2021 20:17 — forked from digi0ps/skillhack.js
Hack for skillrack copy paste
// 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;
@pavi2410
pavi2410 / cpp-macros.h
Last active March 2, 2022 10:01 — forked from fmeyer/macros.h
#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)