Skip to content

Instantly share code, notes, and snippets.

View jrgleason's full-sized avatar

Jackie Gleason jrgleason

View GitHub Profile
@jrgleason
jrgleason / index.mjs
Last active April 1, 2020 19:46
Rollup issue
console.log("Hello World");
@jrgleason
jrgleason / gist:b2a3fb61469d02ea46fdc2349e0461ef
Last active September 15, 2019 17:02
Simple Vuetify Example
#scripts(hidden)
script(src="//npmcdn.com/axios/dist/axios.min.js")
script(type="module")
| import Vue from '/vue/vue.esm.browser.js'
| const global = window || global;
| global.Vue = Vue;
script(type="module")
| import * as Vuetify from '/vuetify/dist/vuetify.js';
| const global = window || global;
| global.Vue.use(Vuetify);
@jrgleason
jrgleason / Application.mjs.fail
Last active June 9, 2019 21:27
Trying to get Koa-pug working
import http2 from "http2";
import fs from "fs";
import { promisify } from "util";
import Koa from "koa";
import Pug from "koa-pug"
import Router from "koa-router";
import serve from "koa-static";
import mount from "koa-mount";
const PORT = process.env.PORT || "3000";
@jrgleason
jrgleason / Application.java
Created May 4, 2019 16:57
Spring Boot Example
package org.example;
import java.io.File;
import java.util.logging.Logger;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
@SpringBootApplication
@EnableAutoConfiguration
@jrgleason
jrgleason / terminal
Created April 26, 2019 15:40
How I run Mocha
mocha --delay --exit ./test/suite.js
import depcheck from 'depcheck';
import path from "path";
const options = {
withoutDev: false, // [DEPRECATED] check against devDependencies
ignoreBinPackage: false, // ignore the packages with bin entry
skipMissing: false, // skip calculation of missing dependencies
ignoreDirs: [ // folder with these names will be ignored
'dist'
],
import 'vue-material/dist/vue-material.css'
import 'vue-material/dist/theme/default-dark.css'
export default {
data:()=>({
message: "Now it is for real",
title: "Jackie R. Gleason",
menuVisible: false
}),
methods: {
toggleMenu () {
// Express Node app
app.use('/vue', express.static(__dirname + '/node_modules/vue/dist/vue.esm.browser.js'));
app.use('/vue-router', express.static(__dirname + '/node_modules/vue-router/dist/vue-router.esm.js'));
@jrgleason
jrgleason / BasePage.mjs
Created December 18, 2018 16:41
Ref error on external
import {Other} from "./Other"
export class BasePage{
constructor(){
}
}
@jrgleason
jrgleason / BasePage.mjs
Created December 17, 2018 17:58
ES6 Selenium Driver not working with mocha
import webdriver from "selenium-webdriver";
const url = process.env.TEST_UI_URL || "http://localhost:9090/";
const { By } = webdriver;
export class BasePage{
constructor(driver){
if(driver) this.driver = driver;
else{
console.log("Driver is undefined");
const builder = new webdriver.Builder()
.forBrowser("chrome");