Skip to content

Instantly share code, notes, and snippets.

View mejarc's full-sized avatar

M. Archer mejarc

  • Oakland, CA, USA
View GitHub Profile
@mejarc
mejarc / cowboy.py
Created February 22, 2013 16:23
Ben Alman's TextMate presentation theme converted for Pygments
# -*- coding: utf-8 -*-
"""
Cowboy Colorscheme
~~~~~~~~~~~~~~~~~~
Converted by Vim Colorscheme Converter
"""
from pygments.style import Style
from pygments.token import Token, Comment, Name, Keyword, Generic, Number, Operator, String
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Jacob Rus</string>
<key>comment</key>
<string>Created by Jacob Rus. Based on ‘Slate’ by Wilson Miner</string>
<key>name</key>
<string>Cowboy - Presentation</string>
@mejarc
mejarc / how_many_hours.py
Created January 5, 2013 01:04
How many hours from now? A calculator for scheduling Buffer or Talentopoly posts. Relies on old-fashioned `raw_input`, but can be easily updated to Python 3.
from datetime import datetime
now = datetime.now()
print "Today is: ", now.strftime('%a, %d, %h %Y')
how_many_days = raw_input("How many days from now should this post? ")
print how_many_days
how_many_hours = (int(how_many_days)) * 24
print "This is %d hours." % how_many_hours
@mejarc
mejarc / gitignore
Created October 11, 2012 17:05
gitignore
Thumbs.db
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
/Makefile
sessions/*
/* 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 / 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

@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 / 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 / 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 / sunge-tel
Created March 13, 2012 18:02
Sungevity tel attribute
<a class="sprite tel" href="tel:8667864255"> 866.SUN.4ALL</a>