Skip to content

Instantly share code, notes, and snippets.

View zli117's full-sized avatar

NoSegfault zli117

View GitHub Profile
@zli117
zli117 / fix_gnome_osk_bounce.md
Last active April 16, 2026 06:11
Fix GNOME Onscreen Keyboard Bouncing Due To Auto Complete (Wayland)

Fix GNOME Onscreen Keyboard Bouncing Due To Auto Complete (Wayland)

If you use the GNOME onscreen keyboard (OSK) with word suggestions enabled, you've probably noticed that the keyboard "bounces" or changes height dynamically when the suggestion bar appears and disappears. This is extremely jarring, especially on a 2-in-1 device or tablet.

This guide provides a clean, native CSS fix to force the suggestion bar to a static height, eliminating the bounce without needing to disable ibus-typing-booster or install heavy third-party keyboard replacements.

Prerequisites

You need the GNOME Tweaks tool and the User Themes extension to allow GNOME to load custom shell CSS.

@zli117
zli117 / new-forward.cuh
Created August 29, 2019 22:58
Convolution using matrix unrolling and multiplication
#ifndef MXNET_OPERATOR_NEW_FORWARD_CUH_
#define MXNET_OPERATOR_NEW_FORWARD_CUH_
#include <mxnet/base.h>
#define OUT_SIZE 24
#define IN_SIZE 28
#define QUERY 0
#define SHITTY_UNROLL(i) \