Skip to content

Instantly share code, notes, and snippets.

View notmarkmiranda's full-sized avatar
🏠
Working from home

Mark Miranda notmarkmiranda

🏠
Working from home
  • Smartsheet
  • Longmont, CO
View GitHub Profile
@notmarkmiranda
notmarkmiranda / mark_miranda_asset_pipeline_challenge.md
Created April 20, 2016 15:33
20160420 - Asset Pipeline Challenge

What does it mean to concatenate files? Find an image of an example concatenated file. Why would we want to concatenate files?

  • appending one file to another file

What does it mean to precompile files? What does this have to do with coffeescript and sass files?

  • turns sass in css, coffeescript into js, erb into html before needing them to save time/bandwidth

What does it mean to minify files? Find an image of an example minified file. Why would we want to minify files?

@notmarkmiranda
notmarkmiranda / blogpost-nrdb.md
Last active April 26, 2016 19:27
Outline for Non Relational Databases Blog Post.

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

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

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:

@notmarkmiranda
notmarkmiranda / undo_change_notifier.dart
Created April 11, 2020 04:21 — forked from brianegan/undo_change_notifier.dart
Undo/Redo with ChangeNotifier
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;