Skip to content

Instantly share code, notes, and snippets.

View kognise's full-sized avatar
🦷

Lexi Mattick kognise

🦷
View GitHub Profile
window._adata = {
action: 'js',
target: 'console.log("BOT!!!");',
js: false,
ok: false,
cid: '4cb2bdd5e1b96a87d439f65ad57e9039'
}
;(function () {
var errors = []
struct Container<'a> {
process: &'a mut dyn FnMut(),
}
// ...
struct ContainerOwner<'a> {
container: Container<'a>,
}
use std::marker::PhantomData;
use std::ptr;
// Behaves like &'a mut dyn FnMut,
// except requires only one pointer indirection for functions without data.
struct ShallowFnMutRef<'a> {
fn_ptr: unsafe fn(*mut ()),
data: *mut (),
_marker: PhantomData<&'a mut ()>,
}
#[macro_export]
macro_rules! autoparse_struct {
(
$(#[$meta:meta])*
$vis:vis $Name:ident {
$($inner:tt)*
}
) => {
autoparse_struct!(@ (reader, [$($meta)*], $vis, $Name): {$($inner)*} -> [], [], []);
};
@kognise
kognise / kagi.css
Last active February 21, 2026 02:55
My Kagi custom CSS. It's very minimal, but it makes the interface a lot cleaner.
.theme_moon_dark {
--search-result-title: var(--link);
--primary-hover: var(--blue-300);
--primary-hover-hover: var(--blue-300);
--link: var(--blue-300);
--secondary: var(--graphite-950);
--blue-300: #b9c7ff;
--ranked-box-shadow: var(--box-shadow);
}