Skip to content

Instantly share code, notes, and snippets.


Alexander Tsepkov atsepkov

View GitHub Profile
jeremyBanks / cover.jpg
Created May 15, 2011 Audiobook Generator
mislav /
Last active Oct 24, 2020
tmux-vim integration to transparently switch between tmux panes and vim split windows

I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).

In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.

An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.

Here's how it should work:

pburkholder /
Created Aug 30, 2013
OS X quick install of gcalcli, the Google Calendar command line interface
# assumes you have installed easy_install & brew
easy_install -O2 dateutils
easy_install --upgrade google-api-python-client
easy_install --upgrade python-gflags
git clone
chmod +x gcalcli/gcalcli
XVilka /
Last active Nov 24, 2020
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
View on-jsx.markdown

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't

amonks / hyper.lua
Created Jan 13, 2017
hammerspoon hyper key: capslock to escape _and_ cmd+ctrl+alt+shift
View hyper.lua
## install
Use karabiner-elements to bind capslock to F18
install hammerspoon
You can’t perform that action at this time.