Skip to content

Instantly share code, notes, and snippets.

View christurnertv's full-sized avatar

Chris Turner christurnertv

View GitHub Profile
# Intro to Static Website Development and Hosting (w/ GitHub Pages)
## What is a static site?
- It doesn't change.
- The opposite of dynamic. :)
## What are the pros and cons of static sites?
### Pros:
@christurnertv
christurnertv / gist:119658c5a3642d716469
Created September 18, 2014 18:17
Backbone hello world.
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<script src="http://backbonejs.org/backbone-min.js"></script>
</head>
<body>
<div id="main">
@christurnertv
christurnertv / Ad.class.php
Created September 12, 2014 20:55
Super Ad Site - Friday Review
<?php
class Ad {
public $title = '';
public $body = '';
public $contactName = '';
public $contactEmail = '';
public $createdAt = '';
<html>
<head>
<title>JS Arrays</title>
</head>
<body>
<button id="btnAddContact">Add Contact</button>
<script>
// create a circle object
var circle = {
<html>
<head>
<title>Contact Manager</title>
</head>
<body>
<button id="btnAddContact">Add Contact</button>
<script>
var contactManager = {
"contacts" : [
<html>
<head>
<title>Disarm the BOM (Browser Object Model)</title>
</head>
<body>
<h1>Mission Impossible!</h1>
<button id="btnDisarm">Disarm the BOM!</button>
<script>
var detonationTimer = 10; // seconds
@christurnertv
christurnertv / 1. app-config-local-app.php
Created April 17, 2014 19:02
Laravel Environment and Error Handing Config
<?php
return array(
'debug' => true,
);
@christurnertv
christurnertv / ajax.blade.php
Created April 11, 2014 19:09
jQuery Ajax and Laravel Demo
@extends('layouts.master')
@section('content')
<button id="btnGet" class="btn">Ajax Get</button>
<button id="btnPost" class="btn">Ajax Post</button>
@stop
<html>
<head>
<title>Fade Out Sample</title>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<img src="img/mole.jpg" style="display:none;">
<script>
<html>
<head>
<title>Exampe jQuery Page</title>
<style>
.invisible {
display: none;
}
</style>
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>