Skip to content

Instantly share code, notes, and snippets.

View cgspicer's full-sized avatar

Coran Spicer cgspicer

View GitHub Profile
@cgspicer
cgspicer / dap-todo.md
Last active August 29, 2015 14:04
Decatur Atlant Printing to-do list

DAP remaining to-do list

Requested Homepage Changes:

  • Header:
    • Complete "Estimates" calculator functionality and move it to the footer. (This has been taken on by the DAP internal team)
    • Move "Catalog", "Contact", and "Services" to the footer.
  • Footer:
    • Remove the current "Services" and "Popular Products" list
  • Final Footer should contain the following resources:
@cgspicer
cgspicer / swipejs-rotating-gallery.js
Last active August 29, 2015 14:04
SwipeJS Rotating Gallery Module
@cgspicer
cgspicer / wp-json.php
Created April 30, 2014 03:35
Fishpig Wordpress integration extension patch of WP-API
<?php
/**
* JSON API support for WordPress
*
* @package WordPress
*/
/**
* Whether this is a XMLRPC Request
*
@cgspicer
cgspicer / index.html
Created February 11, 2013 18:42
A CodePen by Coran Spicer. focalPoint.js for jQuery - A jQuery plugin that stores an array of elements and adds a class to the element that is center-most in the viewport. Useful for drawing user attention to the center-most article in a loop, for instance.
<div class="container">
<article class="post first">
<header>
<h3>Some Post</h3>
</header>
<section>
<p>Some sort of content and ipsum. Bacon ipsum dolor sit amet doner short loin andouille ball tip tongue pastrami. Corned beef spare ribs shoulder pastrami doner bresaola sausage ribeye beef frankfurter meatball sirloin cow flank pig. Salami strip steak sirloin drumstick ribeye meatloaf. Cow turducken flank shoulder t-bone hamburger. T-bone short loin pastrami brisket beef ribs ball tip. Pork loin turducken jowl, short ribs tail corned beef andouille pork chop jerky.</p>
</section>
</article>
<article class="post second">
@cgspicer
cgspicer / bookmarklet
Created December 2, 2012 01:34
A silly little thing that takes the first ten peeps from an object on the Facebook view and displays them in a little box in the lower left corner.
javascript:(function()%7Bfunction%20p()%7Bo.setAttribute(%22id%22%2C%22top-friends-wrapper%22)%3Bo.setAttribute(%22style%22%2C%22display%3Ablock%3Boverflow%3Ahidden%3Bposition%3Afixed%3Bbottom%3A20px%3Bleft%3A20px%3Bborder%3A1px%20solid%20black%3Bbackground%3Awhite%3B%22)%3Bvar%20e%3Ddocument.createElement(%22h3%22)%3Be.setAttribute(%22style%22%2C%22padding%3A3px%3Bbackground-color%3A%233b5998%3Bcolor%3Awhite%3B%22)%3Be.innerHTML%3D%22Top%20Ten%20Friends%22%3Bo.appendChild(e)%3Bs%3D0%3Bv()%7Dfunction%20d(e)%7Bdocument.body.appendChild(e)%7Dfunction%20v()%7Bif(s%3Ct.length)%7Bm(s)%3Bs%2B%2B%7D%7Dfunction%20m(e)%7Bvar%20n%3Dnew%20XMLHttpRequest%3Bn.open(%22GET%22%2C%22http%3A%2F%2Fgraph.facebook.com%2F%22%2Bt%5Be%5D%2Ctrue)%3Bn.onreadystatechange%3Dfunction()%7Bif(n.readyState%3D%3D4%26%26n.status%3D%3D200)%7Bvar%20i%3DJSON.parse(n.responseText)%3Br.push(i)%3Bn.abort()%3Bif(e%3D%3Dt.length-1)%7Be%3Dnull%3Bg()%7Delse%7Bv()%7D%7D%7D%3Bn.send()%7Dfunction%20g()%7Bfor(n%3D0%3Bn%3Cr.length%3Bn%2B%2B)%7Bvar%20e%3Dr%5