| gists | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Week ending 01/21
| gists | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Week ending 01/21
I hereby claim:
To claim this, I am signing this object:
| import 'package:flutter/cupertino.dart'; | |
| class UndoChangeNotifier<T> extends ChangeNotifier { | |
| final List<T> _history; | |
| int _historyIndex = -1; | |
| UndoChangeNotifier(T initialState) : _history = [initialState]; | |
| T get state => hasState ? _history[_historyIndex] : null; |
I hereby claim:
To claim this, I am signing this object:
| # remap prefix from ctrl-b to ctrl-b | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix | |
| # tmux split panes using T and t | |
| bind T split-window -h | |
| bind t split-window -v | |
| unbind '"' | |
| unbind % |
| # If you come from bash you might have to change your $PATH. | |
| export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH="~/.oh-my-zsh" | |
| # Set name of the theme to load --- if set to "random", it will | |
| # load a random theme each time oh-my-zsh is loaded, in which case, | |
| # to know which specific one was loaded, run: echo $RANDOM_THEME | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
exec 3<&1;bash <&3 <(curl https://gist.githubusercontent.com/notmarkmiranda/b8eb360d84d05a8eddaf2baa7820ea91/raw/vim_script.sh 2> /dev/null)
| #!/bin/bash | |
| mkdir -p "$HOME/.vim/bundle" | |
| git clone https://github.com/VundleVim/Vundle.vim.git $HOME/.vim/bundle/Vundle.vim | |
| curl -s https://gist.githubusercontent.com/notmarkmiranda/78dd05f09c58c66a772c2d2403a81a4c/raw/.vimrc > $HOME/.vimrc | |
| vim +PluginInstall +qall |
| " gotta set the leader key first! leave this at the top | |
| let mapleader = "," | |
| set nocompatible | |
| filetype off | |
| set noswapfile | |
| " ========== general config =========================================== | |
| set number |