Skip to content

Instantly share code, notes, and snippets.

View mominul's full-sized avatar
🚀
Learning

Muhammad Mominul Huque mominul

🚀
Learning
View GitHub Profile

Implement iBus IME auto configuration for Pantheon. I have implemented auto config for IBus on Gnome at /src/frontend/PlatformConfig.cpp. You're running in Panthon DE on elementaryOS, so you can experiment.

@mominul
mominul / gist:a2b13900da3288f56039cf8fd7526e8f
Created August 23, 2025 05:05
Useful Regex (Find & Replace) for VSCode
Useful Regex (Find & Replace)
= *"(assets[^"]*)"
="{% static "$1" %}"
vcpkg integrate install
mkdir build; cd build
cmake .. -DCMAKE_PREFIX_PATH="C:\Qt\5.15.2\msvc2019_64\lib\cmake" -DCMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake"
msbuild .\INSTALL.vcxproj
@mominul
mominul / install-packhub.md
Last active February 25, 2025 11:38
installation through packhub

Ubuntu based

wget -qO- http://packhub.dev/sh/ubuntu/github/mominul/pack-exp2 | sh
sudo apt install ibus-openbangla

Debian based

wget -qO- http://packhub.dev/sh/debian/github/mominul/pack-exp2 | sh
sudo apt install ibus-openbangla
@mominul
mominul / rust.yml
Last active October 2, 2025 19:56
debug.yml
# sg scan -U --rule .\debug.yml
id: insert-debug
language: c++
rule:
kind: compound_statement
pattern: $A
inside:
kind: function_definition
transform:
DEBUG:
[
{
"bounds": {
"northeast": {
"lat": 23.8720233,
"lng": 90.37362519999999
},
"southwest": {
"lat": 23.7909808,
"lng": 90.3630179
@mominul
mominul / note.txt
Last active July 8, 2018 12:24
Note
bash -c "$(wget -q --show-progress https://raw.githubusercontent.com/Adyel/OpenBangla-Keyboard/SimpleInstall/tools/install.sh -O -)"
git checkout -b bdeshi-master-fork master
git pull https://github.com/bdeshi/OpenBangla-Keyboard.git master-fork
@mominul
mominul / remainder.swift
Created January 30, 2016 17:21
Swift: Get remainder in a Integer
// Calculates remainder in a integer
// It's work like the '%' operator in swift
// Currently integer values are supported
// Public Domain ;)
// By Muhammad Mominul Huque
func getRemainder(var realNum: Int, goesTo: Int) ->Int {
while(realNum > goesTo) {
realNum -= goesTo
}
return realNum