Skip to content

Instantly share code, notes, and snippets.

View mrmrs's full-sized avatar

Adam Morse mrmrs

View GitHub Profile
@mrmrs
mrmrs / github-display-none.css
Last active November 2, 2019 03:09
Single purpose rulesets to set an element to display none from githubs production css
.table-list-triage {
display: none;
}
.triage-mode .table-list-non-triage, .triage-mode .table-list-filters {
display: none;
}
.boxed-group-list>li.approved .btn-sm, .boxed-group-list>li.rejected .btn-sm {
display: none;
}
.repo-list .participation-graph.disabled {
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 / .vimrc
Last active May 12, 2021 09:43
My .vimrc file
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'
@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'
save every line to a separate file
:g/^/exe ".w ".line(".").".txt"
@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\] $ "
@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 / 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 / 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">
[user]
name = mrmrs
email = [email protected]
[alias]
br = branch
ci = commit
co = checkout
df = diff
g = grep -I