Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
{prtscr}>{-lshift}{-lwin}{s}{+lshift}{+lwin}
[=]>[delete]
[hyphen]>[pup]
[tab]>[bspace]
[\]>[pdown]
[caps]>[tab]
[lshift]>[hyphen]
{lalt}{z}>{-lalt}{1}{+lalt}
{lalt}{x}>{-lalt}{2}{+lalt}
{lalt}{c}>{-lalt}{3}{+lalt}
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Cmder Here"
"Icon"="C:\\cmder\\icons\\cmder.ico"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder\command]
@="\"C:\\cmder\\Cmder.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Neovim Here]
[HKEY_CLASSES_ROOT\Directory\Background\shell\Neovim Here\command]
@="C:\\Neovim\\bin\\nvim-qt.exe ."
call plug#begin('~/AppData/Local/nvim/plugged')
Plug 'git@github.com:OmniSharp/omnisharp-vim.git'
Plug 'joshdick/onedark.vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'Shougo/echodoc.vim'
Plug 'itchyny/lightline.vim'
Plug 'junegunn/fzf.vim'
Plug 'easymotion/vim-easymotion'
Plug 'dense-analysis/ale'
### Chainable Eval
class Calc
%w(zero one two three four five six seven eight nine divided_by times plus minus).zip((0..9).to_a + %w(/ * + -)) do |d|
define_method(d.first.to_sym) { (@exp ||= []) << d.last; self }
end
define_method(:==) { |expected| eval(@exp.join) == expected }
end