Skip to content

Instantly share code, notes, and snippets.

View aaronbalthaser's full-sized avatar

Aaron Balthaser aaronbalthaser

View GitHub Profile
@aaronbalthaser
aaronbalthaser / index.html
Created May 26, 2014 18:20
Simple Web Page
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
setcookie('name', $_POST['name'], time() + 60 * 60 * 24 * 2);
setcookie('form', 'none', time() + 60 * 60 * 24 * 2);
setcookie('message', 'block', time() + 60 * 60 * 24 * 2);
header("Location: index.php");
}
$message = isset($_COOKIE['message']) ? $_COOKIE['message'] : 'none';
$form = isset($_COOKIE['form']) ? $_COOKIE['form'] : 'block';
$name = isset($_COOKIE['name']) ? ucfirst($_COOKIE['name']) : '';
@aaronbalthaser
aaronbalthaser / README.txt
Last active August 29, 2015 14:01
Image Rotator
1. Upload the css and js files to the server.
2. Add the link to the css file in the head of your html page.
- Example:
<link rel="stylesheet" href="css/main.css">
3. Add the link to the js file in the head of your html page or within the body tag.
- Example:
<link rel="stylesheet" href="js/main.js">
4. Add the following block of code to your html page and update the image path to your image.
<div class="rotator">
<figure class="show">
@aaronbalthaser
aaronbalthaser / .block
Last active October 27, 2017 00:33
fresh block
license: mit
@aaronbalthaser
aaronbalthaser / .block
Created October 28, 2017 10:07
fresh block
license: mit
@aaronbalthaser
aaronbalthaser / .block
Last active November 8, 2017 16:48
fresh block
license: mit
@aaronbalthaser
aaronbalthaser / .block
Created November 11, 2017 22:36
zoomable, draggable force layout with labels
license: mit
border: yes
@aaronbalthaser
aaronbalthaser / .block
Created November 13, 2017 20:51
fresh block
license: mit
@aaronbalthaser
aaronbalthaser / .block
Last active November 14, 2017 17:20
fresh block
license: mit
@aaronbalthaser
aaronbalthaser / .block
Last active November 14, 2017 17:45
fresh block
license: mit
@aaronbalthaser
aaronbalthaser / .block
Last active November 14, 2017 18:19
fresh block
license: mit