Skip to content

Instantly share code, notes, and snippets.

@hrasekj
hrasekj / husky_pre-commit
Last active December 23, 2024 14:58
Husky pre-commit hook, that will lint or check only staged changes using biomejs.
#!/usr/bin/env sh
# get staged file names
unstaged_files=$(git diff --name-only)
staged_files=$(git diff --cached --name-only)
err_output=""
# check each staged file via biome check
# @see https://biomejs.dev/reference/cli/
for file in $staged_files; do
@kristianmandrup
kristianmandrup / Converting libraries to Ember CLI addons.md
Last active March 12, 2025 04:26
Guide to Developing Addons and Blueprints for Ember CLI

Converting libraries to Ember CLI addons

In this guide we will cover two main cases:

  • Ember specific library
  • vendor library

Ember library

The Ember library will assume that Ember has already ben loaded (higher in the loading order) and thus will assume it has access to the Ember API.

@nijikokun
nijikokun / yaml.syntax.js
Created August 8, 2011 02:14
SyntaxHighlighter for YAML
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
*
* @version
* 2.0.320 (July 26 2009)
*