Skip to content

Instantly share code, notes, and snippets.

$werve
6th Borough Project
AC/DC
AIWASKA
AJR
AURORA
Adriano Celentano
Adventure Time
Aerosmith
dima@carbon:~$ python3
Python 3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> d = dict()
>>> d[
... 1] = 2
>>> d
{1: 2}
>>> d[1] = 2

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@koorgoo
koorgoo / principles.md
Last active August 4, 2017 10:19
Software Development Principles

Don't worry about design, if you listen to your code a good design will appear.

Martin Folwer, Is Design Dead?

Do the simplest thing that could possibly work.

SOLID

  1. single responsibility principle
@koorgoo
koorgoo / .vimrc
Created May 24, 2014 11:12
Vim's Esc pain
" Easy switch
set nopaste
set pastetoggle=<F2>
" No more pain in your ass
" i - enter Insert mode
" ii - exit Insert mode
imap ii <ESC>
" Turn on Insert (paste) mode
tmux new-session = tmux new
tmux new -s <session_name> -n <first_window_name>
Prefix $ # rename session
Prefix d # detach from session
tmux attach -t <session_name>
Prefix : # enter command mode
[ui]
username = <full name and email>
[alias]
co = checkout
st = status
br = branch
brs = branches
[auth]
# Change Prefix to Alt-a.
# set -g prefix M-a
# Window index starts from 1 (default 0).
set -g base-index 1
# `set-window-option`.
# Pane index starts from 1 (default 0).
setw -g pane-base-index 1

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: