Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

kevin olson acidjazz

🎯
Focusing
Block or report user

Report or block acidjazz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7fb2fa8156a33ac3538c8d4d8b9bfd7c
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
Progress of a Button using vue+tailwind+materialdesignicons
View PushButton.vue
<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}")
View sentry.php
<?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,
]);
View test.yaml
- 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"
View pstorm
#!/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
View ImportData.php
<?php
namespace App\Services\Import;
use Carbon\Carbon;
use Illuminate\Http\UploadedFile;
use co\odin\Models\Import;
use co\odin\Models\Account;
class ImportData {
View ProcessData.php
<?php
class ProcessData {
private Object $json;
private Object $processed;
public function __construct($json)
{
$this->setJson($json);
View binding error
[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)
View cloudiint-kong.sh
#!/bin/bash
#
# cloudinit-kong.sh
#
# cloudinit script to spin up and configure a kong instance
#
SERVICE=kong
ENV=production
View FormatDate.vue
<template lang="pug">
time.tooltip(
:datetime="value",
:data-tooltip="value.format('dddd, MMM Do, `YY @ hh:mm:ss a')",
) {{ formatted(format) }}
</template>
<script>
export default {
You can’t perform that action at this time.