Skip to content

Instantly share code, notes, and snippets.

View jrgleason's full-sized avatar

Jackie Gleason jrgleason

View GitHub Profile
2024-03-24 13:48:33 17:48:33.358 [main] INFO com.cbusha.be.BackendApplication -- Cassandra is up - executing command
2024-03-24 13:48:34
2024-03-24 13:48:34 . ____ _ __ _ _
2024-03-24 13:48:34 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
2024-03-24 13:48:34 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2024-03-24 13:48:34 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
2024-03-24 13:48:34 ' |____| .__|_| |_|_| |_\__, | / / / /
2024-03-24 13:48:34 =========|_|==============|___/=/_/_/_/
2024-03-24 13:48:34 :: Spring Boot :: (v3.2.1)
2024-03-24 13:48:34
@jrgleason
jrgleason / test.ts
Last active July 14, 2023 04:47
StackOverflowHelp Promises
const axios = require("axios");
class Test {
view1: { id: number, name: string } | undefined;
view2: { id: number, name: string } | undefined;
view3: { id: number, name: string } | undefined;
extra_photos: { id: number, name: string }[] | undefined
async downloadFile(id: number, name: string): Promise<File> {
const response = await axios({
@jrgleason
jrgleason / README.md
Created August 27, 2022 15:48 — forked from mrsasha/README.md
Jacoco setup for calculating kotlin test coverage (single module)

Jacoco setup for calculating kotlin test coverage (single module)

put the jacoco.gradle file below somewhere in your app repo (like scripts folder), and then add apply from: '../scripts/jacoco.gradle' to your module gradle file.

This will add additional gradle build tasks to your app, in the form of "testFlavourUnitTestCoverage" that you can run manually (e.g. testStagingDebugUnitTestCoverage) to generate the coverage.

You can edit def excludes definition to further exclude classes you don't want to generate the coverage for. If you have source in other folders beyond those specified in def coverageSourceDirs, add them.

This will generate both exec file used by external code quality analyzers (like Sonarqube), in the build/jacoco folder, and XML and HTML reports, in the build/reports/jacoco/flavourName folder.

@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 () {