Skip to content

Instantly share code, notes, and snippets.

View mpabegg's full-sized avatar

Matheus Abegg mpabegg

View GitHub Profile
@mpabegg
mpabegg / README.md
Created May 23, 2022 23:25 — forked from Kolenov/README.md
Use mac style shortcuts on Windows with AutoHotkey (ahk) script

Use (most) macOS style shortcuts on Windows

Make Windows PC's shortcut act like macOS (Mac OS X)

With this AutoHotKey script, you can use most macOS style shortcuts (eg, cmd+c, cmd+v, ...) on Windows with a standard PC keyboard.

Note that

  1. You should disable the Between input languages shotcut from Control Panel\Clock, Language, and Region\Language\Advanced settings > Change lanugage bar hot keys because it conflicts with cmd + shift + ↑ / ↓ / ← / → (select text between cursor and top / bottom / beginning of line / end of line)
  2. you shouldn't change the modifier keys mapping with keyboard DIP. This script assumes you use a standard PC keyboard layout, and wish to use shortcuts as if it was a mac keyboard layout.

Keybase proof

I hereby claim:

  • I am mpabegg on github.
  • I am mpabegg (https://keybase.io/mpabegg) on keybase.
  • I have a public key ASBA5BiIsexDqp3b_2D8CcP6IXckV9fvLGHzT0A9QXkKWgo

To claim this, I am signing this object:

@mpabegg
mpabegg / robot.js
Created December 5, 2012 20:59 — forked from Shipow/robot.js
Bolinha Returns
var cannonRotated = false;
var Robot = function(robot) {
robot.rotateCannon(-90);
cannonRotated = true;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@mpabegg
mpabegg / robot.js
Created December 5, 2012 20:54
Masah
function Robot(robot) {}
var found = false;
// well, we need to do something...
// whenever our robot is idle, this method gets called.
Robot.prototype.onIdle = function(ev) {
var robot;
robot = ev.robot;
if (!found){
robot.ahead(1);
robot.turn(0.5);
@mpabegg
mpabegg / robot.js
Created December 5, 2012 20:31
Muahaha
//FightCode can only understand your robot
//if its class is called Robot
var isRotating = true;
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@mpabegg
mpabegg / robot.js
Created December 5, 2012 16:58
BOLINHA
function Robot(robot) {
robot.rotateCannon(-90);
}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
Robot.prototype.onIdle = function(ev) {
robot.ahead();
};
// this method gets called whenever we hit another robot...