Skip to content

Instantly share code, notes, and snippets.

wacom intuos s

the tablet has 4 buttons, the stylus has 2 buttons

I want the following functions

  1. undo
  2. redo
  3. switch to eraser
  4. send to clipboard
\newcommand*\cir[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=2.5pt] (char) {#1};}}
\documentclass{article}
\usepackage{tikz-cd}
%change style of arrows
\tikzcdset{arrow style=math font}
% circle
\newcommand*\cir[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=2.5pt] (char) {#1};}}
@vakili
vakili / shell.nix
Created May 24, 2021 11:10
Python development environment
# first run the following
# $ niv init
# $ niv update nixpkgs -b nixpkgs-unstable
# then enter the environment by running
# $ nix-shell
let
sources = import ./nix/sources.nix;
pkgs = import sources.nixpkgs { };
inherit (pkgs.lib) optional optionals;
@vakili
vakili / spacemacs-to-doom-migration.org
Last active May 4, 2021 10:09
Spacemacs to Doom migration notes

Spacemacs to Doom migration notes

  • M x: (spacemacs: SPC SPC) replaced by SPC :.
  • Terminology: layers in spacemacs are called modules in doom.
  • Vim surround: (e.g. s)) d oes not work by default. See https://teddit.net/r/emacs/comments/e72m9j/evilsurround_shortcuts_in_doom_coming_from/ (But note: maybe use evil-embrace instead.)
  • Zoom: transient state (spacemacs: SPC z x) replaced by C + and C -.
  • Open scratch buffer: (spacemacs: SPC b s) replaced by SPC b x or SPC x for a minimized version, and SPC b X for full window.
  • Describe key: (spacemacs: SPC h d k) replaced by SPC h k.
  • SPC SPC now does projectile-find-file.
  • Alt-tabbing between buffers (spacemacs: SPC Tab) is not bound (?). I now use :bn and :bp.
@vakili
vakili / keybase.md
Created November 29, 2019 13:18
keybase.md

Keybase proof

I hereby claim:

  • I am vakili on github.
  • I am vakili (https://keybase.io/vakili) on keybase.
  • I have a public key ASCKqXguDL96pD_mk5KVbSUBVQakQUrKpjTQDlCf1QNQ3Qo

To claim this, I am signing this object:

@vakili
vakili / Life.hs
Created April 10, 2019 22:53
game of life
module Life where
-- a cell is identified by a pair of coordinates
type Cell = (Int, Int)
-- a cell is either live or dead
data State = Live | Dead deriving Eq
-- a grid assigns a state to each cell
type Grid = Cell -> State