Skip to content

Instantly share code, notes, and snippets.

View mrmrs's full-sized avatar

Adam Morse mrmrs

View GitHub Profile
mrmrs / Social Nav
Created June 18, 2012 22:24
Boilerplate for Social Nav
<ul class="social">
<li class="twitter">
<a href="" title="Follow on Twitter">@handle_</a>
<li class="dribbble">
<a href="" title="Follow on Dribbble">Dribbble</a>
<li class="cargo">
<a href="" title="Cargo Collective Portfolio">Cargo Collective</a>
mrmrs / sharable-IP
Created October 22, 2012 20:20
Any computer that hits this IP from the same wifi network will have access to your localhost
ifconfig en0 | grep 'inet ' | cut -d " " -f2
$nonpareille: 8px!default;
$minion: 9px!default;
$petit: 11px!default;
$bourgeois: 12px!default;
$long-primer: 13px!default;
$small-pica: 15px!default;
$pica: 16px!default;
$english: 19px!default;
$columbian: 21px!default;
$great-primer: 24px!default;
mrmrs / .vimrc
Created February 11, 2013 07:34
My .vimrc file. More comments needed.
set nocompatible " Uses vim vs vi settings must be set first
syntax on " Turn on syntax highlighting for recognized filetypes
set title
set history=1000 " I fuckup a lot. I need more than 20 undos.
set wildmenu " Show me how many options I have to choose from on autocomplete
set number " Displays numbers on left of file
set visualbell " If I never hear that fucking beep again I'll be mad stocked. Unless it's in electronic music. Then it's fine.
set autoread " Reload files changed outside of vim
set hidden " Buffers can exist without being in window - hit :bn or :bp to toggle between buffers
set incsearch " find next match as we type the search
mrmrs / Defaults.css
Created February 20, 2013 08:17
My defaults to override the browser defaults. CSS is so weird.
html, body, div, span,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code,
del, dfn, img, ins, kbd, q, samp,
mrmrs / sf-colors.scss
Created February 21, 2013 00:22
Stitch Fix Colors
mrmrs / change-file-extension
Last active December 15, 2015 22:39
Rename all css files to scss. Could be used to change extension for any two file types.
for file in *.css
mv ${file} ${file%.css}.scss
mrmrs / vim-random
Last active December 16, 2015 04:29
let @+=@" "This copies your latest buffer to clipboard
vim --version look for +clipboard
mrmrs / html-css-nav
Created June 7, 2013 00:34
.vimrc mappings for super easy front-end file management. When your cursor is over a class name, press fj to step to the first definition of that class in your css/sass. Subsequently press cn to step through the quick-fix list results. These can obviously be mapped to anything you want. I like this combo personally.
map fj :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cnext<CR>
map cn :cn<CR>
mrmrs /
Created June 12, 2013 05:44
Examples of common tasks. Can be mapped to anything you want.

Delete all blank lines in a file


Delete trailing white space