Skip to content

Instantly share code, notes, and snippets.

murmurs mrmrs

Block or report user

Report or block mrmrs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mrmrs
mrmrs / index.html
Created Feb 3, 2014
Dead simple html 5 template
View index.html
<!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">
View block-formatting-contexts
/* 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 Mar 9, 2014
A better set of default colors for the web.
View colors.css
/***
colors.css v0.2.0
http://clrs.cc
@mrmrs
MIT
***/
/*
View .bashrc
# 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\] $ "
View oneliners
save every line to a separate file
:g/^/exe ".w ".line(".").".txt"
@mrmrs
mrmrs / .vimrc
Created Nov 25, 2014
My simple setup for vim
View .vimrc
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'
View gulp-uncss.js
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 / instagram-display-none.css
Created May 26, 2015
Single purpose rulesets that set an element to display: none for instagram.com
View instagram-display-none.css
/* 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;
@mrmrs
mrmrs / shopify-display-none.css
Created May 26, 2015
Single purpose rulesets that set display none on an element
View shopify-display-none.css
.marketing-input-focus+.marketing-form__messages .error+.suggest,
.marketing-input:focus+.marketing-form__messages .error+.suggest,
.marketing-input.focus+.marketing-form__messages .error+.suggest,
.marketing-textarea:focus+.marketing-form__messages .error+.suggest,
.marketing-textarea.focus+.marketing-form__messages .error+.suggest {
display: none;
}
.marketing-nav-wrapper.js-is-active .icon-caret-down {
display: none;
}
@mrmrs
mrmrs / medium-display-none.css
Created May 26, 2015
Single purpose rulesets for medium.com that set an element to display none
View medium-display-none.css
/* 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;
}
You can’t perform that action at this time.