Skip to content

Instantly share code, notes, and snippets.

@dixler
dixler / code_appreciation.md
Last active April 22, 2023 22:13
This gist contains code examples that I thought were interesting.

Code appreciation

This gist contains examples of:

  • business logic changes
  • comparisons between different blocks of code
  • different ways that developers use the same language's syntax

It's more of a collection of food for thought.

Contributing

@dixler
dixler / init.lua
Last active February 17, 2023 00:48
lua/user/init.lua
--[[
Copyright 2023 Kyle Dixler
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the “Software”), to deal in the Software without restriction, including without
limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
Software, and to permit persons to whom the Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
@dixler
dixler / schema.ts
Created May 15, 2022 09:53
putting together a typescript type to represent pulumi package schemas. stashing it for now.
export type Package = {
name:string // Name is the unqualified name of the package (e.g. “aws”, “azure”, “gcp”, “kubernetes”, “random”)
displayName?:string // The human-friendly name of the package.
// TODO: is version not required [https://github.com/pulumi/pulumi-hugo/issues/1508]
version?:string // Version is the version of the package. The version must be valid semver.
description?:string // Description is the description of the package.
keywords?:string[] // Keywords is the list of keywords that are associated with the package, if any. Reserved keywords can be specified that help with categorizing the package in the Pulumi registry. category/<name> and kind/<type> are the only reserved keywords at this time, where <name> can be one of: cloud, database, infrastructure, network, utility, vcs and <type> is either native or component. If the package is a bridged Terraform provider, then don’t include a kind/ label.
homepage?: string // Homepage is the package’s homepage.
@dixler
dixler / .tmux-dv2qwerty.conf
Last active October 15, 2017 04:49
Tmux: Keyboard layout swap
################################################################################
# Dvorak to Qwerty
################################################################################
# Lowercase maps
unbind -n q
unbind -n w
unbind -n e
unbind -n r
unbind -n t
@dixler
dixler / gdbinit
Created September 15, 2017 17:09 — forked from CocoaBeans/gdbinit
.gdbinit - A user-friendly gdb configuration file
# INSTALL INSTRUCTIONS: save as ~/.gdbinit
#
# DESCRIPTION: A user-friendly gdb configuration file.
#
# REVISION : 7.3 (16/04/2010)
#
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit,
# truthix the cyberpunk, fG!, gln
#
# FEEDBACK: https://www.reverse-engineering.net