Skip to content

Instantly share code, notes, and snippets.

@SMacEwan
SMacEwan / laravel-setup.txt
Created September 18, 2012 23:16
Laravel Setup
Dependencies:
- MAMP Pro (Local web server)
Useful:
- Sequel Pro (phpMyAdmin sucks)
- Kaleidoscope (for git difftool, way easier to read)
Steps:
1. Download and unzip
2. Setup MAMP host to point to path/to/project/public
@SMacEwan
SMacEwan / gist:3746653
Created September 18, 2012 23:13
PHP Database connection template
<?php
//Replace ALL the things!
$hostname = 'localhost';
$database = 'testdb';
$username = 'root';
$password = 'root';
$dbh = new PDO('mysql:host=' . $hostname . ';dbname=' . $database, $username, $password);
@SMacEwan
SMacEwan / html5boilerplate.html
Created September 18, 2012 23:06 — forked from scopevale/html5boilerplate.html
HTML5 Boilerplate
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">