Skip to content

Instantly share code, notes, and snippets.

@VictorDenisov
VictorDenisov / composition.go
Created November 17, 2021 23:08
Golang composition
package main
import (
"fmt"
)
type A struct {
}
func (a *A) hello() {
import XMonad
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.SetWMName
import XMonad.Hooks.EwmhDesktops
import XMonad.Config.Xfce
import XMonad.Util.EZConfig (additionalKeys)
myManageHook = composeAll
[ className =? "Xfrun4" --> doCenterFloat
# Sample ``local.conf`` for user-configurable variables in ``stack.sh``
# NOTE: Copy this file to the root ``devstack`` directory for it to
# work properly.
# ``local.conf`` is a user-maintained setings file that is sourced from ``stackrc``.
# This gives it the ability to override any variables set in ``stackrc``.
# Also, most of the settings in ``stack.sh`` are written to only be set if no
# value has already been set; this lets ``local.conf`` effectively override the
# default values.
@VictorDenisov
VictorDenisov / colemak.vim
Created September 26, 2014 16:33
Colemak insert mode mapping
" Maintainer: Victor Denisov<denisovenator@gmail.com>
" Last Changed: 2014 Sep 26
"
" All characters are ASCII, conversion to another encoding (e.g., UTF-8)
" should work.
let b:keymap_name = "en-cl"
loadkeymap
q q
@VictorDenisov
VictorDenisov / .bashrc
Created January 12, 2014 19:59
.bashrc line for .pyrc
export PYTHONSTARTUP="/path/to/pyrc/file/.pyrc"
@VictorDenisov
VictorDenisov / .pyrc
Created January 12, 2014 19:58
.pyrc which enables tab autocompletion in python shell
import rlcompleter
import readline
readline.parse_and_bind("tab: complete")
@VictorDenisov
VictorDenisov / gnu.vim
Created January 18, 2013 11:26
gnu indentation config for vim
cinoptions=>4,n-2,{2,^-2,:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1