Skip to content

Instantly share code, notes, and snippets.

@derred
derred / gist:4593683
Last active December 11, 2015 11:28 — forked from ajmalafif/rails.md
[Rails] - list of useful development gems for building apps with Rails
@derred
derred / gist:4593680
Last active December 11, 2015 11:28
[WP] - git + WordPress + pagodabox + MAMP

Please note this might be a unique isolated issue to my current setup of MAMP. Proceed at your own risk

Create a "New App" with PagodaBox using their default Quickstart.

Files to configure

  1. rename config.php to config-sample.php (then setup db and install WP)
  2. Install Roots Theme
  3. /pagoda/.htaccess
  4. Boxfile
@derred
derred / gist:4593679
Last active December 11, 2015 11:28 — forked from ajmalafif/roots.md
[wp] - WordPress with Roots 6.2.0.1 (Boostrap) for pagodabox setup
@derred
derred / css.md
Created January 22, 2013 10:34
[css] - responsive timeline from horizontal to vertical.
@derred
derred / gist:3024586
Created June 30, 2012 16:46
[jQuery] smooth-scrolling
$(document).ready(function() {
function filterPath(string) {
return string
.replace(/^\//,'')
.replace(/(index|default).[a-zA-Z]{3,4}$/,'')
.replace(/\/$/,'');
}
var locationPath = filterPath(location.pathname);
var scrollElem = scrollableElement('html', 'body');
@derred
derred / deploy.rake
Created June 14, 2012 05:18 — forked from thegrubbsian/deploy.rake
Heroku Deploy Rake Task
namespace :deploy do
HEROKU_ACCOUNT = "account_name"
MAINLINE_BRANCH = "master"
STAGING_REPO = "app-name-staging"
PRODUCTION_REPO = "app-name-production"
def make_git_timestamp
"#{@env}-deploy-#{Time.now.to_s.gsub(/:/, "-").gsub(/\s/, "-").gsub(/--/, "-")}"
end
@derred
derred / WP: .gitignore file
Created June 4, 2012 04:03
WP: .gitignore file
.htaccess
wp-*.php
xmlrpc.php
wp-admin/
wp-includes/
wp-content/uploads/
wp-content/blogs.dir/
wp-content/upgrade/*
wp-content/backup-db/*
wp-content/advanced-cache.php
@derred
derred / gist:1996351
Created March 7, 2012 21:27
jQuery: Starting Template (Netttuts+)
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title></title>
<link rel="stylesheet" href="style.css">
</head>
<body>