Skip to content

Instantly share code, notes, and snippets.

View jgerigmeyer's full-sized avatar

Jonny Gerig Meyer jgerigmeyer

View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

import BB from 'backbone';
import Mnt from 'backbone.marionette';
require('_404.njk');
export default function(App) {
const Controller = (App.Controller = {});
Controller.URLS = {
home: () => '/',
'use strict';
exports.initialize = function (app) {
app.module('Utils', function (Utils, App, Backbone, Marionette, $) {
Utils.createAndNavigateToProject = function (collection) {
var model = collection.create({ name: 'Untitled' });
Backbone.history.navigate('/app/' + model.get('uuid'), true);
};
@jgerigmeyer
jgerigmeyer / click-outside.ts
Last active November 14, 2023 12:22
v-click-outside directive for Vue 3
/**
* Modified for Vue 3 from https://github.com/ndelvalle/v-click-outside
* Cf. https://github.com/ndelvalle/v-click-outside/issues/238
*/
import { DirectiveBinding, ObjectDirective } from 'vue';
const HANDLERS_PROPERTY = '__v-click-outside';
const HAS_WINDOWS = typeof window !== 'undefined';
const HAS_NAVIGATOR = typeof navigator !== 'undefined';