Skip to content

Instantly share code, notes, and snippets.

View freetwix's full-sized avatar
🏋️
heavy lifting

Jochen Kramer freetwix

🏋️
heavy lifting
View GitHub Profile
### 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:
@freetwix
freetwix / .phoenix.js
Last active January 24, 2017 23:44
phoenix config hmans
// 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,
@freetwix
freetwix / .phoenix.js
Created December 1, 2014 14:51
phoenix.js starter
// Key combinations
var mash = ['ctrl', 'alt', 'cmd'];
Screen.prototype.frameSomehowFixed = function() {
return _.extend(
this.frameWithoutDockOrMenu(),
_.pick(this.frameIncludingDockAndMenu(), ['width','x'])
);
}