Skip to content

Instantly share code, notes, and snippets.

View andrewhampton's full-sized avatar
:shipit:

Andrew Hampton andrewhampton

:shipit:
View GitHub Profile
app:
build: .
command: bundle exec rails server -b 0.0.0.0 --pid=/tmp/app.pid
volumes:
- .:/usr/src/app
links:
- proxy
environment:
- VIRTUAL_HOST=app.d
expose:
local grid = {}
local window = require 'mjolnir.window'
function grid.snap(win, x, y, w, h)
local newframe = {
x = x,
y = y,
w = w,
h = h,
}