Skip to content

Instantly share code, notes, and snippets.

View jonlabelle's full-sized avatar

Jon LaBelle jonlabelle

View GitHub Profile
@jonlabelle
jonlabelle / ldap_search_filter_cheatsheet.md
Last active November 11, 2026 10:01
LDAP Search Filter Cheatsheet
@jonlabelle
jonlabelle / npm_version_cheatsheet.md
Last active November 11, 2026 09:21
npm version cheatsheet

npm version cheatsheet

npm uses Semantic Versioning.

MAJOR.MINOR.PATCH[-PRERELEASE][+BUILD]
Part Meaning
@jonlabelle
jonlabelle / go_language_cheatsheet.md
Last active September 28, 2026 18:14
Go language cheatsheet, written to be something you can actually keep open while coding.

Go (Golang) Language Cheatsheet

Comprehensive Go language cheatsheet, written to be something you can actually keep open while coding.

It includes core syntax, language rules, standard patterns, and essential "Go-isms".


Table of Contents

@jonlabelle
jonlabelle / npm_vs_yarn_command_translation_cheatsheet.md
Last active September 18, 2026 07:26
npm vs yarn command translation cheat sheet
@jonlabelle
jonlabelle / async_await_best_practices_cheatsheet.md
Last active September 5, 2026 20:39
C# Asynchronous Programming Guideline Cheat Sheet

Async Await Best Practices Cheat Sheet

Summary of Asynchronous Programming Guidelines

Name Description Exceptions
Avoid async void Prefer async Task methods over async void methods Event handlers
Async all the way Don't mix blocking and async code Console main method
Configure context Use ConfigureAwait(false) when you can Methods that require con­text
@jonlabelle
jonlabelle / television_resolution_standards.md
Last active September 4, 2026 13:44
Digital and analog television standards resolution reference.

Television Standards

Digital and analog television standards resolution reference.

Digital TV Standards

Standard Resolution (dots × lines) DAR (H:V) Pixels
PixelVision 120 × 90 4:3 10,800
@jonlabelle
jonlabelle / imageoptim.sh
Last active August 8, 2026 16:50
Shortcut for ImageOptim.app tool, lossless image optimizer for MacOS.
#!/usr/bin/env bash
##
# Shortcut for ImageOptim.app tool, Lossless image optimizer for MacOS.
# Only files and directories are allowed as arguments.
#
# Example:
# imageoptim /path/to/image.png
# imageoptim /path/to/images
#
@jonlabelle
jonlabelle / bem_cheatsheet.md
Last active August 7, 2026 22:00
BEM cheatsheet
title BEM cheatsheet
subtitle Block Element Modifier (BEM) naming convention cheatsheet.
date June 13, 2021
source https://en.bem.info/methodology/naming-convention/

BEM cheatsheet

The name of a BEM entity is unique. The same BEM entity always has the same name

@jonlabelle
jonlabelle / ANSI.md
Created August 14, 2021 16:21 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@jonlabelle
jonlabelle / string-utils.js
Last active June 21, 2026 12:40
Useful collection of JavaScript string utilities.
// String utils
//
// resources:
// -- mout, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str) {
return str.toLowerCase();