Skip to content

Instantly share code, notes, and snippets.

View acidjazz's full-sized avatar
🎯
Focusing

kevin olson acidjazz

🎯
Focusing
View GitHub Profile
ERROR /blog/medellin-resilience-in-practice-53z71sVdwsiMkOSiqoi2wW 17:15:17
Error: render function or template not defined in component: anonymous
at Qi (/Users/k/project/node_modules/vue-server-renderer/build.prod.js:1:66749)
at io (/Users/k/project/node_modules/vue-server-renderer/build.prod.js:1:70622)
at ro (/Users/k/project/node_modules/vue-server-renderer/build.prod.js:1:70272)
at eo (/Users/k/project/node_modules/vue-server-renderer/build.prod.js:1:67519)
at /Users/k/project/node_modules/vue-server-renderer/build.prod.js:1:70739
at Yi (/Users/k/project/node_modules/vue-server-renderer/build.prod.js:1:67229)
at io (/Users/k/project/node_modules/vue-server-renderer/build.prod.js:1:70641)
@acidjazz
acidjazz / test.yml
Created June 11, 2020 21:27
github test workflow for a laravel project
name: Test
on:
push:
branches-ignore:
- staging
- production
jobs:
test:
runs-on: ubuntu-latest
Internal error. Please refer to http://jb.gg/ide/critical-startup-errors
java.lang.ExceptionInInitializerError
at com.intellij.ide.a.d.b.a(b.java:260)
at com.intellij.ide.a.l.al.c(al.java:297)
at com.intellij.ide.a.l.aD.c(aD.java:181)
at com.intellij.ide.a.l.aD.a(aD.java:78)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
@acidjazz
acidjazz / PushButton.vue
Last active May 21, 2020 20:26
Progress of a Button using vue+tailwind+materialdesignicons
<template lang="pug">
button.py-2.px-3.rounded.tran-colors-p1.relative.overflow-hidden(
@click="click",
:class="[ctheme, cursor, is_active]")
.flex.items-center.tran-opacity-p5(:class="{'italic opacity-75': is_loading, 'opacity-25': is_success}")
.mdi(v-if="icon", :class="[`mdi-${icon}`, label ? 'mr-2' : '']")
img.w-4.h-4(v-if="image", :src="image", :class="label ? 'mr-2' : ''")
div(v-if="label") {{ label }}
.bg-white-o3.button-progressbar.ani-zi(:class="{'hidden': !is_loading || !is_progress}", :style="`width: ${progress}%`")
.bg-white-o3.button-loadbar.ani-zi(:class="{'hidden': !is_loading || is_progress}")
<?php
if (app()->bound('sentry') && $this->shouldReport($exception)) {
$sentry = app('sentry');
if (auth()->check()) {
\Sentry\configureScope(function (\Sentry\State\Scope $scope): void {
$scope->setUser([
'id' => auth()->user()->id,
'name' => auth()->user()->fullname,
'email' => auth()->user()->email,
]);
- name: Test Branch
run: echo "${BRANCH}"
- name: Set Region for staging
run: echo "::set-env name=REGION::us-east-2"
if: ${{ env.BRANCH }} == "staging"
- name: Set Region for production
run: echo "::set-env name=REGION::us-east-1"
#!/usr/bin/env python
# Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
# -*- coding: utf-8 -*-
import os
import socket
import struct
import sys
import traceback
<?php
namespace App\Services\Import;
use Carbon\Carbon;
use Illuminate\Http\UploadedFile;
use co\odin\Models\Import;
use co\odin\Models\Account;
class ImportData {
<?php
class ProcessData {
private Object $json;
private Object $processed;
public function __construct($json)
{
$this->setJson($json);
[2020-01-24 22:50:20] testing.ERROR: Illegal offset type in isset or empty {"exception":"[object] (ErrorException(code: 0): Illegal offset type in isset or empty at /Users/k/kh/service-import/vendor/laravel/framework/src/Illuminate/Container/Container.php:1124)
[stacktrace]
#0 /Users/k/kh/service-import/vendor/sentry/sentry/src/ErrorHandler.php(379): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'Illegal offset ...', '/Users/k/kh/ser...', 1124, Array)
#1 /Users/k/kh/service-import/vendor/laravel/framework/src/Illuminate/Container/Container.php(1124): Sentry\\ErrorHandler->handleError(2, 'Illegal offset ...', '/Users/k/kh/ser...', 1124, Array)
#2 /Users/k/kh/service-import/vendor/laravel/framework/src/Illuminate/Container/Container.php(660): Illuminate\\Container\\Container->getAlias(Object(kittyhawk\\consus\\Local))
#3 /Users/k/kh/service-import/vendor/laravel/framework/src/Illuminate/Container/Container.php(265): Illuminate\\Container\\Container->resolve(Object(kittyhawk\\consus\\Local)