Skip to content

Instantly share code, notes, and snippets.

View illusi03's full-sized avatar
:octocat:
What's happening ?

Bambang Mohammad Azhari illusi03

:octocat:
What's happening ?
View GitHub Profile
@illusi03
illusi03 / ctrl-enter.js
Created February 12, 2023 08:54 — forked from KacperKozak/ctrl-enter.js
[Ctrl] + [Enter] to Submit Forms
document.body.addEventListener('keydown', function(e) {
if(!(e.keyCode == 13 && (e.metaKey || e.ctrlKey))) return;
var target = e.target;
if(target.form) {
target.form.submit();
}
});
@illusi03
illusi03 / .gitconfig
Created August 17, 2020 02:39 — forked from sarthaksavvy/.gitconfig
Git configuration
[alias]
acm = "!f() { git add . && git commit -m \"$(echo $@)\"; }; f";
com = checkout master
cob = checkout -b
b = branch
p = push
pl = pull
s = status
@illusi03
illusi03 / .gitconfig
Created August 17, 2020 02:39 — forked from sarthaksavvy/.gitconfig
Git configuration
[alias]
acm = "!f() { git add . && git commit -m \"$(echo $@)\"; }; f";
com = checkout master
cob = checkout -b
b = branch
p = push
pl = pull
s = status