Skip to content

Instantly share code, notes, and snippets.

View chrisnharvey's full-sized avatar

Chris Harvey chrisnharvey

View GitHub Profile
@chrisnharvey
chrisnharvey / install-cli.tools.sh
Created November 15, 2013 12:48
A simple tool to install AWS CLI tools on OS X
# Things will be here... Trust me!
@chrisnharvey
chrisnharvey / laravel-nginx.nginxconf
Last active December 25, 2015 17:19
nginx configuration for Laravel
location / {
root /path/to/laravel/public;
index index.php;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?/$1 last;
break;
}
@chrisnharvey
chrisnharvey / removePlaceholders.js
Created August 19, 2013 13:59
Remove HTML5 placeholders on focus
$(function() {
// Remove placeholders on focus
$("input, textarea").focus(function() {
var placeholder = $(this).attr('placeholder');
if (placeholder !== '') {
$(this).attr('placeholder', '');
$(this).attr('data-placeholder', placeholder);
} else {
$(this).attr('placeholder', placeholder);