Skip to content

Instantly share code, notes, and snippets.

View Novout's full-sized avatar

Giovane Silva Novout

  • todo
  • Brazil
  • 18:52 (UTC -03:00)
View GitHub Profile
@WolfangAukang
WolfangAukang / COLEMAK_README.md
Last active March 30, 2023 17:04
US layout with the Colemak variant swapping Backspace with CapsLock.

Want to use Colemak with Backspace with Capslock on a Wayland system?

Yeah, I have grown frustrated in finding a way to get this running. I need CapsLock in my life.

Here you go, this script will work.

Just make a backup of the previous one (as superuser)

$ cp /usr/share/X11/xkb/symbols/us{,bak}
@paradite
paradite / paste.js
Last active January 24, 2023 10:48
intercept paste and do formatting in JavaScript (in Angular.js)
// tested in Chrome and Firefox
this.onPaste = function (event) {
if($(event.target).is(':focus')) {
// actually typing on the element, stop paste progation to outside paste handler
event.stopPropagation();
// intercept paste and format the text
event.preventDefault();
var newText = (event.originalEvent || event).clipboardData.getData('text/plain');
newText = newText.replace(/\r?\n/g, ' ');
@alopes
alopes / stopwords.txt
Created April 10, 2013 20:32
Portuguese stop words
de
a
o
que
e
do
da
em
um
para