Skip to content

Instantly share code, notes, and snippets.

View mrmrs's full-sized avatar

Adam Morse mrmrs

View GitHub Profile
@mrmrs
mrmrs / index.html
Created February 3, 2014 08:51
Dead simple html 5 template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>
MNML
</title>
<meta name="author" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
@mrmrs
mrmrs / block-formatting-contexts
Created March 7, 2014 22:31
Ideal z-index scale
/* z-index is hard. Save yourself by using this easy to understand scale */
z-index: -100000;
z-index: -1;
z-index: 0;
z-index: 1;
z-index: 2;
z-index: 3;
z-index: 6;
z-index: 9;
@mrmrs
mrmrs / colors.css
Created March 9, 2014 12:11
A better set of default colors for the web.
/***
colors.css v0.2.0
http://clrs.cc
@mrmrs
MIT
***/
/*
@mrmrs
mrmrs / .bashrc
Last active August 29, 2015 13:58
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
save every line to a separate file
:g/^/exe ".w ".line(".").".txt"
@mrmrs
mrmrs / .vimrc
Created November 25, 2014 21:45
My simple setup for vim
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
set runtimepath+=~/.vim/bundle/ultisnips
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'sjl/gundo.vim'
gulp.task('uncss', function() {
return gulp.src('css/tachyons.css')
.pipe(uncss({
html: ['index.html'],
ignore: [':hover', ':focus', ':link', ':active', ':visited']
}))
.pipe(minifyCSS())
.pipe(rename({ extname: 'stripped.min.css' }))
.pipe(gulp.dest('./css/'));
});
@mrmrs
mrmrs / medium-display-none.css
Created May 26, 2015 04:26
Single purpose rulesets for medium.com that set an element to display none
/* MEDIUM */
.metabar--postSecondaryBar .voteWidget--text .icon--heart {
display: none;
}
.metabar-shareActions .button>.icon--readingList2:before,
.metabar-shareActions .button.is-active>.icon--readingList2outline:before {
display: none;
}
@mrmrs
mrmrs / salesforce-display-none.css
Created May 26, 2015 06:54
Single purpose rulesets used to set an element to do display none
/* SALESFORCE */
.product-selector {
display: none;
}
.header-nav-container .header-nav-list li .search-container {
display: none;
}
.media.left>.media-hdr>.media-title,
.media.right>.media-hdr>.media-title {
@mrmrs
mrmrs / instagram-display-none.css
Created May 26, 2015 07:02
Single purpose rulesets that set an element to display: none for instagram.com
/* INSTAGRAM */
.spring-refresh.page-home #reactModalMountPoint {
display: none;
}
.page-accounts .password-reset p:not(.form-text):not(.form-actions) {
display: none;
}
.hide {
display: none !important;