Skip to content

Instantly share code, notes, and snippets.

🐌
in a marathon of sprints

Kuanysh Bayandinov kuka

🐌
in a marathon of sprints
Block or report user

Report or block kuka

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:156ebddcd274484501dbd91dbd58dac2
BEGIN MESSAGE.
8TeAGbrFw74uUoV PCMBJ14DD5cgbFz 5WcK1miST3BOVC9 e6kdWHMaYyKfqAI
pAw4Tha5ZbJvzUp AWvPcaPDSzfTCKq 6Xr2MZHgg6vFIct 9rVnCqpZKJw2Wy3
0gKawFlnuBy4nhr 9nlCch0DJEfSRQv q2VaY2CK8gSi05J VX63swk5anzIEpD
WFCVTK6Q1aIip2G Tk5syk9u7uYaf7V WDKX.
END MESSAGE.
View init.el
;; packages
(setq package-enable-at-startup nil)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(when (>= emacs-major-version 24)
(require 'package)
(add-to-list
'package-archives
View Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
tap "jesseduffield/lazygit/lazygit"
brew "diff-so-fancy"
brew "entr"
brew "exa"
brew "fd"
brew "fx"
View .zpreztorc
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
View .zshrc
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
View .vimrc
call plug#begin('~/.vim/plugged')
" Editing
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'junegunn/limelight.vim'
Plug 'terryma/vim-multiple-cursors'
Plug 'jparise/vim-graphql'
Plug 'yggdroot/indentline'
View .tmux.conf
###########################
# Configuration
###########################
# use 256 term for pretty colors
set -g terminal-overrides ',xterm-256color:Tc'
set -g default-terminal "tmux-256color"
set -as terminal-overrides ',xterm*:sitm=\E[3m'
# use true colors
View keybase.md

Keybase proof

I hereby claim:

  • I am kuka on github.
  • I am kuanysh (https://keybase.io/kuanysh) on keybase.
  • I have a public key ASDhCD9zmcRw6ojmIM75_aCSObtwahZmfC4hHCJKM9dElQo

To claim this, I am signing this object:

@kuka
kuka / normalizeCase.ts
Created Feb 22, 2019
Typescript: normalizes string case
View normalizeCase.ts
export const normalizeCase = (str: string) =>
str
.replace(/\b(?:[a-zA-Z]\.){2,}/, a => a.toUpperCase())
.replace(/(?!\b(?:[a-zA-Z]\.){2,})/, a => a.toLowerCase())
.replace(/(\w*[a-z0-9_]+\w*)/g, a => a.toLowerCase())
@kuka
kuka / autocadcolors.js
Last active Sep 20, 2019
AutoCAD colors index with HEX and RGB equivalents. https://github.com/kuka/autocad-colors-index
View autocadcolors.js
// AutoCAD 0-255 colors mapped with equivalents in HEX and RGB
// source: http://sub-atomic.com/~moses/acadcolors.html
export default [{
"aci": 0,
"hex": "#000000",
"rgb": "rgb(0,0,0)"
}, {
"aci": 1,
"hex": "#FF0000",
You can’t perform that action at this time.