Skip to content

Instantly share code, notes, and snippets.

@Oaks
Oaks / init.vim
Created March 28, 2021 20:44 — forked from erickpatrick/init.vim
Neovim CoC Intelephense configuration
" TODO: split up config into multiple files
" source $HOME/.config/nvim/vim-plug/plugins.vim
" source $HOME/.config/nvim/<category>/<sub-category-filename>.vim
" source $HOME/.config/nvim/<plug-config>/<plugin-name>.vim
set nocompatible
filetype off
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
@Oaks
Oaks / .vimrc
Created February 6, 2021 00:37
from github.com/minimul
set nocompatible
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'junegunn/fzf', { 'do': './install --all' }
Plug 'junegunn/vim-easy-align'
Plug 'junegunn/seoul256.vim' " Color scheme
Plug 'Raimondi/delimitMate' " Adds auto pairing of ', [, etc.
Plug 'mattn/emmet-vim'
Plug 'mattn/gist-vim'
@Oaks
Oaks / Container.php
Created April 25, 2020 14:35
yet another example of simple IoC container
<?php
interface Container
{
/**
* @param $key
*
* @return mixed
*/
public function get($key);
#!/bin/bash
function ts {
args=$@
tmux send-keys -t right "$args" C-m
}
gdiff() {
view="git diff $* --color=always -- {-1} | diff-so-fancy"
git diff $* --name-status | sed -E 's|\t| |' |
" Vim color file - corporation
" Generated by http://bytefluent.com/vivify 2015-12-18
set background=dark
if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif
@Oaks
Oaks / dom-helper.js
Created March 29, 2019 09:30 — forked from SitePointEditors/dom-helper.js
Mini jQuery, sort of.
/**
* A collection of helper prototype for everyday DOM traversal, manipulation,
* and event binding. Sort of a minimalist jQuery, mainly for demonstration
* purposes. MIT @ m3g4p0p
*/
window.$ = (function (undefined) {
/**
* Duration constants
* @type {Object}
@Oaks
Oaks / .tmux.conf
Last active April 30, 2020 14:33
Tmux config
set -sg escape-time 10
set-option -g default-terminal "screen-256color"
# Free the original `Ctrl-b` prefix keybinding.
unbind C-b
# set prefix key to ctrl-a
set -g prefix C-a
# Smart pane switching with awareness of Vim splits.
@Oaks
Oaks / init.vim
Last active July 24, 2020 18:38
My Neovim config
" ~/.config/nvim/init.vim
" ~/.config/nvim/autoload/plug.vim
" ~/.config/nvim/colors/corporation.vim
"
"
"============================================================================
"" Make :help appear in a full-screen tab, instead of a window
"============================================================================
"Only apply to .txt files...