This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am freetwix on github. | |
* I am freetwix (https://keybase.io/freetwix) on keybase. | |
* I have a public key ASASDKR3bUvefy1LUneP4kdsOJ_Y9SrO50JUhCvXCqDiwAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Key combinations | |
var mash = ['ctrl', 'alt', 'cmd']; | |
Window.prototype.toGrid = function(x, y, width, height) { | |
var screen = this.screen().frame(); | |
this.setFrame({ | |
x: Math.round(x * screen.width) + screen.x, | |
y: Math.round(y * screen.height) + screen.y, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Key combinations | |
var mash = ['ctrl', 'alt', 'cmd']; | |
Screen.prototype.frameSomehowFixed = function() { | |
return _.extend( | |
this.frameWithoutDockOrMenu(), | |
_.pick(this.frameIncludingDockAndMenu(), ['width','x']) | |
); | |
} |