Skip to content

Instantly share code, notes, and snippets.

@maxinuss
maxinuss / Pager.js
Created June 5, 2020 17:05
Pager.js
const routes = [
{
method: 'GET',
path: '/locations',
handler: async (request, h) => {
const db = server.app.db;
const locationCollection = db.collection('locations');
// query all locations
@maxinuss
maxinuss / milestone.rb
Created October 17, 2012 21:40 — forked from cgallagher/milestone.rb
Active Admin Image Upload Form
ActiveAdmin.register Milestone do
scope :all, :default => true
scope :global
scope :user_specific
index do
column :title
column :description
column :required_litres
column :is_active