Skip to content

Instantly share code, notes, and snippets.

@unrevised6419
unrevised6419 / map-input.html
Last active July 17, 2018 10:59
Map input chars to another chars
<input type="text">
@unrevised6419
unrevised6419 / event.code-to-ascii.js
Created July 11, 2018 14:19
Map any keyboard layout and keyboard entry to US layout
function getChar({ code, shiftKey }) {
if (code.startsWith('Key')) {
return code.replace('Key', '')
}
if (code.startsWith('Digit')) {
return code.replace('Digit', '')
}
const normal = {
@unrevised6419
unrevised6419 / GameWon.png
Last active August 23, 2017 19:14
2nd year at Univeristy. Minesweeper in terminal. Made on windows, might work on *nix
GameWon.png
@unrevised6419
unrevised6419 / git-emails.sh
Created June 1, 2017 16:02
List all emails participated at a git repository with commits count
git log --format='%ae' | sort | uniq -c | sort -nr
@unrevised6419
unrevised6419 / programming-language-expert-system.pro
Created December 18, 2015 07:07
Expert system for advising a programming language. (GNU Prolog)
% ------------------------------------------------------------------------------
% Generic Expert System interface
% ------------------------------------------------------------------------------
% Dynamic fact
% --------------------------------------
:- dynamic(known/3).
% --------------------------------------
% Start system
% --------------------------------------
solve :-