Skip to content

Instantly share code, notes, and snippets.

View stephenway's full-sized avatar

Stephen Way stephenway

View GitHub Profile
@stephenmckinney
stephenmckinney / zsh_prezto_rbenv_post_rvm.md
Last active December 10, 2015 16:19
Moving from RVM to rbenv with prezto on Mac OS X Mountain Lion

Uninstall RVM

rvm implode

Then remove any reference to RVM in .z* files.

Install rbenv

@stephenway
stephenway / domain-setup.md
Last active October 13, 2015 05:57
Domain Setup

Domain Setup

This short list of steps will guide you through setting up your domain to launch your site as fast as possible.

  1. Log into your domain provider's website
  2. Goto the DNS editor for the domain you want to setup.
  3. For an existing main A record, set the Time to Live (TTL) to the lowest value available.
  4. Save your changes.
  5. Change the main A record's IP to 63.135.210.217
@stephenway
stephenway / README.md
Created November 15, 2012 17:36
Service Icons

Service Icons Function

Inject service icon links using Ligature Symbols and javascript.

Usage

Define the selector you want to inject the icons to.

var serviceLocations = "selector";
@include handhelds {
table.responsive {
width: 100%;
thead {
display: none;
}
tr {
display: block;
}
td, th {

It All Starts With Templates

An Ember application starts with its main template. Put your header, footer, and any other decorative content in application.handlebars.

<header>
  <img src="masthead">
</header>

<footer>
@evilmarty
evilmarty / README.md
Created October 25, 2012 07:39
Sass vendor helper mixins

If like me you find it frustrating to define the same vendor prefixes over and over again. Sure, you might create mixins that help reduce the amount of repetitiveness but when your mixins file becomes a library (or not) you see so many lines of near-identical code and wonder if there is an easier way.

Say you have this (all-too familiar) mixin:

@mixin border-radius($radius) {
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  -ms-border-radius: $radius;
 -o-border-radius: $radius;
# A little modification to Wynn Netherland's (http://wynnnetherland.com/journal/a-stylesheet-author-s-guide-to-terminal-colors)
# "git n" alias which allows one to specify a subdirectory.
[alias]
n = !"f() { git ls-files $1 | xargs notes | awk -F: '{ print $1,$2; print $3,$4; print $5}' | grcat conf.notes | less -r; }; f"
@keiso
keiso / Compile SCSS to CSS.tmCommand
Created October 10, 2012 03:00
TextMate Command "Compile SCSS to CSS"
<?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>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
<string>#!/bin/sh
SASS_OPTS="-t expanded --scss"
@stephenway
stephenway / README.md
Created October 8, 2012 23:33
SASS Variable Image-Gradient

SASS Variable Image-Gradient

Summary

I try to make my themes as customizable by variables as possible. In this gist we setup default variables, then some helper variables and inject pieces of the background mixin based on what has been set in our default variables.

@misterbrownlee
misterbrownlee / jenkins-notes.md
Created September 12, 2012 18:10
Jenkins setup

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins