Skip to content

Instantly share code, notes, and snippets.

View alexkrolick's full-sized avatar
🎩
Open for consulting gigs!

Alex Krolick alexkrolick

🎩
Open for consulting gigs!
View GitHub Profile
@samsalisbury
samsalisbury / .gitconfig
Last active June 22, 2022 19:30
Git diff and merge with p4merge (OSX)
[merge]
keepBackup = false
tool = p4merge
[mergetool "p4merge"]
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge "\"$PWD/$BASE\"" "\"$PWD/$REMOTE\"" "\"$PWD/$LOCAL\"" "\"$PWD/$MERGED\""
keepTemporaries = false
trustExitCode = false
keepBackup = false
[diff]
tool = p4merge
@staltz
staltz / introrx.md
Last active May 15, 2025 10:37
The introduction to Reactive Programming you've been missing

Hi Zach :D

Modals are funny beasts, usually they are a design cop-out, but that's okay, designers have to make trade-offs too, give 'em a break.

First things first, I'm not sure there is such thing as a "simple" modal that is production ready. Certainly there have been times in my career I tossed out other people's "overly complex solutions" because I simply didn't understand the scope of the problem, and I have always loved it when people who have a branch of experience that I don't take the time

@manigandham
manigandham / rich-text-html-editors.md
Last active April 16, 2025 18:28
Rich text / HTML editors and frameworks

Strictly Frameworks

Abstracted Editors

These use separate document structures instead of HTML, some are more modular libraries than full editors

@Avaq
Avaq / combinators.js
Last active May 8, 2025 16:30
Common combinators in JavaScript
const I = x => x
const K = x => y => x
const A = f => x => f (x)
const T = x => f => f (x)
const W = f => x => f (x) (x)
const C = f => y => x => f (x) (y)
const B = f => g => x => f (g (x))
const S = f => g => x => f (x) (g (x))
const S_ = f => g => x => f (g (x)) (x)
const S2 = f => g => h => x => f (g (x)) (h (x))
@nesbtesh
nesbtesh / DumbComponent.js
Last active November 20, 2016 22:01
Dumb Components in React
const DumbComponent = (props) => {
return (<div />);
}
@alexkrolick
alexkrolick / .zshrc
Last active August 13, 2024 23:15
.zshrc
# Installation
#
# MacOS
#
# mkdir ~/.zsh
# brew install zsh-syntax-highlighting zsh-completions
# touch ~/.zshrc
# touch ~/.profile
#
# Paste this file into `~/.zshrc`
@alexkrolick
alexkrolick / .gitconfig
Last active March 13, 2025 20:27
Git aliases and tool config
[alias]
last = log -1 HEAD
unstage = reset HEAD --
undo = reset --soft HEAD^
stash-all = stash save --include-untracked
ss = stash-all
a = add --patch
aa = add .
amend = commit --amend
c = commit
@developit
developit / *state-machine-component.md
Last active February 6, 2021 00:44
265b lib for building pure functional state machine components. https://github.com/developit/state-machine-component

state-machine-component

A tiny (265 byte) utility to create state machine components using two pure functions.

🔥 JSFiddle Demo

Usage

The API is a single function that accepts 2 pure functions as arguments:

@swalkinshaw
swalkinshaw / tutorial.md
Last active February 26, 2025 21:15
Designing a GraphQL API