Skip to content

Instantly share code, notes, and snippets.

View jishnu7's full-sized avatar
🤷‍♂️

Jishnu Mohan jishnu7

🤷‍♂️
View GitHub Profile
@jishnu7
jishnu7 / pre-commit.sh
Created September 24, 2015 10:44
pre-commit hook for pep8
#!/bin/sh
FILES=$(git diff --cached --name-status | grep -v ^D | awk '$1 $2 { print $2}' | grep -e .py$)
if [ -n "$FILES" ]; then
pep8 -r $FILES
fi
@jishnu7
jishnu7 / gist:e05ef128ddc5caafacb50e34b0d9bb2f
Last active July 8, 2026 14:17
Indic Keyboard Gesture Typing

Gesture (swipe/glide) typing decodes a continuous touch path over the keyboard into dictionary words. The AOSP engine this keyboard is built on ships everything around the decoder - touch capture, path sampling, a beam-search traversal engine, but the decoder itself was proprietary and absent. This implementation supplies that decoder: an HMM-style alignment model that runs inside the existing traversal engine, plus a transliteration layer so swiping works on Indic transliteration layouts.

Architecture