Skip to content

Instantly share code, notes, and snippets.

View kwhitaker's full-sized avatar

Kevin Whitaker kwhitaker

View GitHub Profile
@kwhitaker
kwhitaker / asb-brokger.go
Last active February 28, 2023 14:26
Message Broker
package messaging
import (
stdContext "context"
"github.com/pkg/errors"
"github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus"
)
type ASBBroker struct {
@kwhitaker
kwhitaker / .git-stale
Last active May 4, 2020 19:10
Git delete stale local branches
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -D
/* ==UserStyle==
@name ProtonMail DeepDark
@namespace gitlab.com/RaitaroH/ProtonMail-DeepDark
@homepageURL https://gitlab.com/RaitaroH/ProtonMail-DeepDark
@version 1.0.4
@updateURL https://gitlab.com/RaitaroH/ProtonMail-DeepDark/raw/master/ProtonMail-DeepDark.user.css
@description Emails should be written and read in the dark. May the dark be kinder on thine eyes. (PrtonMail dark theme)
@author RaitaroH
@license GNU-V3.0
==/UserStyle== */
@kwhitaker
kwhitaker / theme.css
Created March 3, 2019 16:24
Proton Mail Bubblegum
/* =========================================== *
* DARK BUBBLE GUM THEME
* Version: 3.12.0
* Author: Cristiano Almeida
* Website: www.csalmeida.com
* Tweets @_csalmeida
* =========================================== */
.headerDesktop-container {
background-color: #1C1C1C;
}
@kwhitaker
kwhitaker / Casting Magick.md
Last active October 3, 2020 04:07
Zweihander Procedures

Casting Magick

  1. Pick the Spell you wish to cast.
    • Only Spells you have formally learned can be attempted.
    • You cannot be wearing armor with the Heavy quality.
    • Wearing armor of any sort may affect the Difficulty Rating when attempting to cast.
  2. Remember the 4 Golden Rules for casting:
    • Can you see the target?
    • Do you have at least one hand free?
    • Can you speak?
  • Do you have the required Reagents on you?
@kwhitaker
kwhitaker / letter.md
Created August 8, 2016 15:29
Wix letter

To all of our wonderful friends and family,

We aren't asking for anything; we have everything we could possibly need! The love of our friends and family, shelter, food, comfort, and most importantly–each other! However, if you do wish to contirbute to our future together, we thought this (<- what is this) would be a good way to help us get started! We love you all, and thank you for being part of our special day!

Julia and Kevin

export const UPDATE_RANGE = 'discovery/dashboard/timeline/UPDATE_RANGE'
export const UPDATE_RESOLUTION = 'discovery/dashboard/timeline/UPDATE_RESOLUTION'
export const UPDATE_LENS = 'discovery/dashboard/timeline/UPDATE_LENS'
const setRange = (range: ITimeRange) => (widgetState: TimelineWidgetState): TimelineWidgetState => assoc('range', range, widgetState)
const setResolution = (resolution: TimelineResolution) => (widgetState: TimelineWidgetState): TimelineWidgetState => assoc('resolution', resolution, widgetState)
const setNavItems = (navItems: TimelineNav) => (widgetState: TimelineWidgetState): TimelineWidgetState => assoc('navItems', navItems, widgetState)
export const TimelineContainer = Object.assign({}, GenericItem, {
updateNavItems: (id: IdKey, navItems: TimelineNav, iterable: Iter<TimelineWidgetState>) => GenericItem.adjust(id, setNavItems(navItems), iterable),
module Story exposing (Model, init, view)
import Html exposing (Html, span, text)
type alias Model =
{ id : Int
, title: String
}
init : Int -> String -> Model
const config = Object.assign({}, require(`./webpack.${process.env.NODE_ENV}`), pkgOpts)
config.entry.push(`${pkg}/build/init`)
config.output.filename = `${pkg}.js`
config.plugins.push(
new HtmlWebpackPlugin({
favicon: 'src/favicon.ico',
title: pkgOpts.name || 'Needs a name',
})
)
const compiler = webpack(config)
@kwhitaker
kwhitaker / .block
Last active March 30, 2016 18:57 — forked from mbostock/.block
Wonky chrome animation
license: gpl-3.0