Skip to content

Instantly share code, notes, and snippets.

Avatar

Alexander Tsepkov atsepkov

View GitHub Profile
@amonks
amonks / hyper.lua
Created Jan 13, 2017
hammerspoon hyper key: capslock to escape _and_ cmd+ctrl+alt+shift
View hyper.lua
print([[
HYPER
## install
Use karabiner-elements to bind capslock to F18
install hammerspoon
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

@XVilka
XVilka / TrueColour.md
Last active Oct 29, 2020
True Colour (16 million colours) support in various terminal applications and terminals
View TrueColour.md

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)
@pburkholder
pburkholder / install_gcalcli.sh
Created Aug 30, 2013
OS X quick install of gcalcli, the Google Calendar command line interface
View install_gcalcli.sh
#!/bin/sh
# 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 https://github.com/insanum/gcalcli.git
chmod +x gcalcli/gcalcli
@mislav
mislav / _readme.md
Last active Oct 24, 2020
tmux-vim integration to transparently switch between tmux panes and vim split windows
View _readme.md

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:

@jeremyBanks
jeremyBanks / cover.jpg
Created May 15, 2011
FanFiction.net Audiobook Generator
You can’t perform that action at this time.