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 / Social Nav
Created Jun 18, 2012
Boilerplate for Social Nav
View Social Nav
<ul class="social">
<li class="twitter">
<a href="http://twitter.com/" title="Follow on Twitter">@handle_</a>
</li>
<li class="dribbble">
<a href="http://dribbble.com" title="Follow on Dribbble">Dribbble</a>
</li>
<li class="cargo">
<a href="http://cargocollective.com/" title="Cargo Collective Portfolio">Cargo Collective</a>
</li>
@mrmrs
mrmrs / sharable-IP
Created Oct 22, 2012
Any computer that hits this IP from the same wifi network will have access to your localhost
View sharable-IP
ifconfig en0 | grep 'inet ' | cut -d " " -f2
View Type Scale
$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
mrmrs / .vimrc
Created Feb 11, 2013
My .vimrc file. More comments needed.
View .vimrc
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
mrmrs / Defaults.css
Created Feb 20, 2013
My defaults to override the browser defaults. CSS is so weird.
View Defaults.css
/*
DEFAULTS
*/
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
mrmrs / sf-colors.scss
Created Feb 21, 2013
Stitch Fix Colors
View sf-colors.scss
$green:#9ed7d1;
$yellow:#f2e230;
$dark-grey:#464547;
$medium-grey:#bebfc1;
@mrmrs
mrmrs / change-file-extension
Last active Dec 15, 2015
Rename all css files to scss. Could be used to change extension for any two file types.
View change-file-extension
for file in *.css
do
mv ${file} ${file%.css}.scss
done
View vim-random
let @+=@" "This copies your latest buffer to clipboard
vim --version look for +clipboard
@mrmrs
mrmrs / html-css-nav
Created Jun 7, 2013
.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.
View html-css-nav
map fj :execute "vimgrep /" . expand("<cword>") . "/j **" <Bar> cnext<CR>
map cn :cn<CR>
@mrmrs
mrmrs / favorite-vim.md
Created Jun 12, 2013
Examples of common tasks. Can be mapped to anything you want.
View favorite-vim.md

Delete all blank lines in a file

:g/^$/d

Delete trailing white space

:%s/\s+$//

You can’t perform that action at this time.