Skip to content

Instantly share code, notes, and snippets.

View menslow's full-sized avatar

Michael Enslow menslow

View GitHub Profile
@jpantuso
jpantuso / osx_lion_rail_setup.md
Created July 27, 2011 19:51
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL
@alettieri
alettieri / wp_capistrano.rb
Created August 30, 2012 17:26
WordPress Capistrano deployment file (On Webfaction)
default_run_options[:pty] = true # Must be set for the password prompt from git to work
# WebFaction user account
# This is the server user account
set :server_user, "<server_username>"
# Server Domain
set :domain, "<domain_name>"
set :user, server_user
# Repository User
@alettieri
alettieri / JW_PostType.php
Created February 12, 2013 02:15
Custom Post Type helper Object.
<?php
session_start();
/**
* JW Post Types
* @author Jeffrey Way
* @link http://jeffrey-way.com
*/
class JW_Post_Type
{
@alettieri
alettieri / gist:5416893
Last active December 16, 2015 09:59
Keyframes example
@include keyframes( bounceIn ) {
0% {
opacity: 0;
@include transform( .3 );
@include box-shadow( 0 0 1px rgba( 0, 0, 0, .45 ) );
}
50% {
opacity: 1;
@include transform( scale(1.05) );
@creativecoder
creativecoder / httpd-vhosts.conf
Last active March 8, 2017 23:55
Apache redirect for missing images
# Place inside a <VirtualHost> or <Directory> declaration
#
# Particularly useful for displaying images in a local development environment
# without actually downloading all of the images
#
# Props to Mark Jaquith for the suggestion at WordCamp SF 2013
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*)(png|jpg|jpeg|gif|svg)$ http://www.example.com$1$2 [L]
@vicramon
vicramon / projections.json
Created July 7, 2014 13:41
Javascript Vim Projections for Ember JS
{
"app/assets/javascripts/router.js": {
"command": "jini"
},
"app/controllers/api/v1/*_controller.rb": {
"command": "apicontroller",
"alternate": "spec/controllers/api/v1/%s_controller_spec.rb",
"template": "class Api::V1::%SController < ApplicationController\n respond_to :json\nend"
},
"app/assets/javascripts/models/*.js": {