Skip to content

Instantly share code, notes, and snippets.

View delaneyj's full-sized avatar

Delaney delaneyj

View GitHub Profile
export const ceil = Math.ceil
export const floor = Math.floor
export const pow = Math.pow
export const sqrt = Math.sqrt
export const sin = Math.sin
export const sinh = Math.sinh
export const asinh = Math.asinh
export const asin = Math.asin
export const cos = Math.cos
export const acos = Math.acos
package utils
import (
"context"
"golang.org/x/sync/errgroup"
)
type ErrGroupSharedCtx struct {
eg *errgroup.Group
package views
import (
"context"
"fmt"
"log"
"net/http"
"strings"
"time"
const svgRaw = `
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300" width="300" height="300">
<path fill="#fff" class="prefix__logo-background-square" d="M0 0h300v300H0z"/>
<linearGradient gradientTransform="rotate(25)" id="prefix__a" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stop-color="#4e1a70"/>
<stop offset="100%" stop-color="#2b4cf2"/>
</linearGradient>
<svg viewBox="0 0 100 100" fill="url(#prefix__a)" transform="matrix(.75 0 0 .75 38.368 37.503)">
<path d="M83.764 69.013c0 3.451-.812 6.854-2.42 10.239a24.341 24.341 0 0 1-6.752 8.562c-3.164 2.537-6.869 4.517-11.086 5.938-4.229 1.439-9.305 2.151-15.264 2.151-3.92 0-7.68-.979-11.342-2.312-2.011-.733-4.082-1.39-5.962-2.43-1.132-.626-2.191-1.398-3.251-2.141-2.992-2.095-5.667-4.637-7.995-7.447a34.25 34.25 0 0 1-2.205-2.983 46.186 46.186 0 0 1-1.028-1.635c-.225-.371-.995-1.26-.995-1.684v-1.202h.828c4.485 3.725 9.662 6.603 15.536 8.614 5.872 2.031 11.373 3.047 16.533 3.047 7.293 0 12.981-1.37 17.042
webpack-internal:///./node_modules/@vue/cli-service/node_modules/webpack/hot/log.js:24 [HMR] Waiting for update signal from WDS...
webpack-internal:///./src/store/backend.ts:56 Expected server @ http://localhost:3000
webpack-internal:///./src/store/backend.ts:56 Expected server @ http://localhost:3000
webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:620 [Vue warn]: Error in nextTick: "TypeError: Cannot create property 'isRootInsert' on string 'Frozen Yogurt'"
warn @ webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:620
webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:1887 TypeError: Cannot create property 'isRootInsert' on string 'Frozen Yogurt'
at createElm (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5908)
at createChildren (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:6037)
at createElm (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5938)
at createChildren (webpack-internal:///./node_modules/vue/d
webpack-internal:///./node_modules/@vue/cli-service/node_modules/webpack/hot/log.js:24 [HMR] Waiting for update signal from WDS...
webpack-internal:///./src/store/backend.ts:56 Expected server @ http://localhost:3000
webpack-internal:///./src/store/backend.ts:56 Expected server @ http://localhost:3000
webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:620 [Vue warn]: Error in nextTick: "TypeError: Cannot create property 'isRootInsert' on string 'Frozen Yogurt'"
warn @ webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:620
webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:1887 TypeError: Cannot create property 'isRootInsert' on string 'Frozen Yogurt'
at createElm (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5908)
at createChildren (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:6037)
at createElm (webpack-internal:///./node_modules/vue/dist/vue.runtime.esm.js:5938)
at createChildren (webpack-internal:///./node_modules/vue/d