Skip to content

Instantly share code, notes, and snippets.

View RickeyWard's full-sized avatar

DiamondDrake RickeyWard

  • DiamondDrake Software and Design, @SwampfoxInc
  • Columbia, SC
View GitHub Profile
@RickeyWard
RickeyWard / mushroom-countdown-card-addon.js
Last active February 18, 2024 16:52
Mushroom Countdown Card Addon
var e="https://github.com/RickeyWard/lovelace-mushroom";
function t(e,t,r,n){var i,a=arguments.length,o=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,r,o):i(t,r))||o);return a>3&&o&&Object.defineProperty(t,r,o),o
/**
* @license
* Copyright 2019 Google LLC
* SPDX-License-Identifier: BSD-3-Clause
*/}const r=window,n=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;let o=class{constructor(e,t,r){if(this._$cssResult$=!0,r!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(n&&void 0===e){const r=void 0!==t&&1===t.length;r&&(e=a.get(t)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(t,e))}return e
@RickeyWard
RickeyWard / mushroom-fan-ex-addon.js
Last active April 29, 2024 08:49
Mushroom Fan Card Ex Extended W/Presets addon
var t="https://github.com/piitaya/lovelace-mushroom";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
@RickeyWard
RickeyWard / SKIP_FAILJOB_ON_STOP_ERROR.patch
Created October 19, 2022 15:42
Docker-Workflow-Plugin Skip Failjob on stop error patch
diff --git a/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java b/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java
index ce27cea..05d5db7 100644
--- a/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java
+++ b/src/main/java/org/jenkinsci/plugins/docker/workflow/client/DockerClient.java
@@ -83,6 +83,13 @@ public class DockerClient {
@Restricted(NoExternalUse.class)
public static boolean SKIP_RM_ON_STOP = Boolean.getBoolean(DockerClient.class.getName() + ".SKIP_RM_ON_STOP");
+ /**
+ * Skip failing a job if docker-stop / rm fails / times out.
@RickeyWard
RickeyWard / SimpleWav.js
Last active February 21, 2022 02:06
SimpleWav Cross-browser base64 encoded wav file player api aimed at supporting wav in IE
/*
* IE can't play wav files in the javascript audio api, or audio element.
* This is a cross browser base64 wav file player aimed at being very simple
* and small while still supporting IE.
* (C)2020 Rickey Ward
* MIT Licence
*/
(function () {
window.simpleWav = {
@RickeyWard
RickeyWard / LaddaButton.tsx
Last active September 23, 2020 20:19
React LaddaButton wrapper in Typescript with hooks
import React, { useRef, useEffect } from 'react'
import { create } from 'ladda'
import { LaddaButton as laddatype } from 'ladda/js/ladda';
export const XS = 'xs'
export const S = 's'
export const L = 'l'
export const XL = 'xl'
export const SIZES = [XS, S, L, XL] as const
//DDFormsExtentions.DDFormFader - Class
//Copyright October 2009 by Rickey Ward (DiamondDrake)
//Email: RickeyWard@DiamondDrake.com
//-----
//This class provides more control over opacity in windowsforms applications
//by providing a more indepth wrapper for the WS_EX_LAYERED window api
//of windows 2k+
//
//THIS CLASS IS PROVIDED ON AN "AS IS" BASIS, AND RICKEY WARD EXPRESSLY DISCLAIMS ANY
//AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF