Skip to content

Instantly share code, notes, and snippets.

View mejarc's full-sized avatar

M. Archer mejarc

  • Oakland, CA, USA
View GitHub Profile
#ie6 {
border: 1px solid #F7941D;
background: #FEEFDA;
position: relative;
}
#ie6 #closer {
background: url(http://www.ie6nomore.com/files/theme/ie6nomore-cornerx.jpg) no-repeat transparent;
position: absolute; right: 3px; top: 3px; text-indent: -1200em;
width: 25px; height: 25px;}
@mejarc
mejarc / HTML5
Created August 1, 2011 23:47
jQuery CDN load
<script src="//code.jquery.com/jquery-latest.js"></script>
@mejarc
mejarc / template.css
Created October 17, 2011 16:34
Jonathan Snook's stylesheet template
/**
* based on "Scalable and Modular Architecture for CSS," by Jonathan Snook: http://smacss.com/book/
* Rules for rendering efficiency: use child selectors, avoid tag selectors, and use class names for the right-most selector.
* Rules listed in this order: 1) Box, 2) Border, 3) Background, 4) Text, 5) Other
*/
/**
* Base. Default rules for elements;
* no class or ID selectors;
* how that element should look in all occurrences on the page.
@mejarc
mejarc / sunge-tel
Created March 13, 2012 18:02
Sungevity tel attribute
<a class="sprite tel" href="tel:8667864255"> 866.SUN.4ALL</a>
@mejarc
mejarc / fakebook.css
Created March 16, 2012 16:58
Styles to mimic Facebook button styling
body {
background: #fff;
color: #333;
font: normal 13px/1.2em "lucida grande", tahoma, verdana, arial, sans-serif;
}
a, a:visited {
color: #3b5998;
}
@mejarc
mejarc / dabblet.css
Created April 23, 2012 20:49
Utilities
@font-face{ font-family: 'LucidaGrande';
src: url('/fonts/lucida_grande/lucida_grande-webfont.eot');
src: url('/fonts/lucida_grande/lucida_grande-webfont.eot?#iefix') format('embedded-opentype'),
url('/fonts/lucida_grande/lucida_grande-webfont.woff') format('woff'),
url('/fonts/lucida_grande/lucida_grande-webfont.ttf') format('truetype'),
url('/fonts/lucida_grande/lucida_grande-webfont.svg#webfont') format('svg');
}
body {
@mejarc
mejarc / comma-first-var.js
Created July 11, 2012 16:26 — forked from isaacs/comma-first-var.js
A better coding convention for lists and object literals in JavaScript
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",
@mejarc
mejarc / gist:3383139
Created August 17, 2012 22:05 — forked from garann/gist:3353532
Crowdsourced career mentorship for female developers

I was inspired by Selena Deckelmann's list of Career Resources for Women (http://www.chesnok.com/daily/career-resources-for-women/), but couldn't think of much to contribute. So I thought maybe those of us already in the field and in a position to mentor could work on creating more. Please fork or comment and add your own!

Also: there is a wealth of info online and elsewhere dating back to the first time it occurred to our species to exchange labor for currency on these topics in general. What I hope we can provide here is our take as individuals. What we would say to someone if we were sitting across from her acting as a mentor. I don't think we should worry about being objectively "right", or about duplicating topics. I add this bit of anti-editorializing in hopes that women will contribute without feeling pressured to be experts, which I worry might prevent them from doing so. TY. :)

Applying for jobs

/* Thierry Koblentz's clearfix, 2010 */
.clearfix:before,
.clearfix:after {
content: ".";
display: block;
height: 0;
overflow: hidden;
}
.clearfix:after {clear: both;}
.clearfix {zoom: 1;} /* IE < 8 */
@mejarc
mejarc / gitignore
Created October 11, 2012 17:05
gitignore
Thumbs.db
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
/Makefile
sessions/*