Skip to content

Instantly share code, notes, and snippets.

View greguintow's full-sized avatar

Greg Teixeira greguintow

View GitHub Profile
@greguintow
greguintow / commit-msg
Last active January 6, 2022 04:22
Git commit message spell check hook with cspell and husky
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
cat $1 | yarn cspell stdin
@greguintow
greguintow / flat-keys.ts
Last active October 3, 2024 08:12
feat: add support for multiple merge methods
type Obj = { [key: string]: any }
export type RemoveNeverProperties<T> = Omit<
T,
{
[K in keyof T]: T[K] extends never ? K : never
}[keyof T]
>
type NonObjectKeys<T extends Obj> = RemoveNeverProperties<
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->