Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Mark Miranda notmarkmiranda

🏠
Working from home
  • Doximity
  • Longmont, CO
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am notmarkmiranda on github.
  • I am markmiranda51 (https://keybase.io/markmiranda51) on keybase.
  • I have a public key ASAKqLoEyp50JhGhSdylOrjBDt6M5wy2q7eRh7RCBkjzsAo

To claim this, I am signing this object:

View undo_change_notifier.dart
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;
View keybase.md

Keybase proof

I hereby claim:

  • I am notmarkmiranda on github.
  • I am markmiranda51 (https://keybase.io/markmiranda51) on keybase.
  • I have a public key ASAEVXhPBSQJOs-8BytliibvdncAx4kQYke1iAI0-Cx8_go

To claim this, I am signing this object:

View .tmux.conf
# 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 %
View .zshrc
# 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
@notmarkmiranda
notmarkmiranda / readme.md
Last active Apr 27, 2019
Mark Miranda's Vim Setup
View readme.md
exec 3<&1;bash <&3 <(curl https://gist.githubusercontent.com/notmarkmiranda/b8eb360d84d05a8eddaf2baa7820ea91/raw/vim_script.sh 2> /dev/null)
View vim_script.sh
#!/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
View .vimrc
" gotta set the leader key first! leave this at the top
let mapleader = ","
set nocompatible
filetype off
set noswapfile
" ========== general config ===========================================
set number
View js_exercisms.md

##Leap My code: here

  • Responder #1 (here) - This person used a single line return statement. I like how clean it is.

  • Responder #2 (here) - This person used a single if/else block.

  • Responder #3 (here) - This person used 3 different if blocks. I dont think the code reads well because none of the blocks close an is based on the idea that returns break code.

  • Responder #4 (here) - This person uses a nest if statement. It looks clean and I feel like I dont know enough about JS to refute that method.

@notmarkmiranda
notmarkmiranda / blogpost-nrdb.md
Last active Apr 26, 2016
Outline for Non Relational Databases Blog Post.
View blogpost-nrdb.md

A Student's Limited View of Non-relational Databases

Background

  • We've been taught traditional relational database and normalization. I was introduced to the topic of non-relational databases and their different uses

Module 2 database concepts

  • basics of normalization in relational databases
  • join tables