Skip to content

Instantly share code, notes, and snippets.

View mrcrowl's full-sized avatar

mrcrowl

View GitHub Profile
@mrcrowl
mrcrowl / karabiner.json
Created April 26, 2022 20:44
Karabiner config that provides a full set of Window-style shortcuts for macOS.
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@mrcrowl
mrcrowl / basket.ts
Last active August 9, 2021 01:16
Example of using vuex-type to create strongly-typed vuex store access
// path: store/basket/basket.ts (module)
import { RootState } from "../../store"
import inventory, { Product } from "../inventory/inventory"
export interface Item { productId: string, quantity: number }
export interface DisplayItem { product: Product, quantity: number }
export interface BasketState { items: Item[], isLoading: boolean }
const initialBasketState: BasketState = { items: [], isLoading: false }