Skip to content

Instantly share code, notes, and snippets.

View andrewgbaker's full-sized avatar

Andrew Baker andrewgbaker

  • Karsh Hagan
  • Denver, CO
View GitHub Profile
@ramsesoriginal
ramsesoriginal / index.php
Created March 9, 2012 10:59
PJAX-PHP: Untested Code, just as a sample how one coudl theoretically implement PJAX with PHP
<?php
$render_template=true;
if ($_SERVER["HTTP_X_PJAX"])
{
$render_template=false;
}
?>
<?php
if ($render_template) {
@LeaVerou
LeaVerou / dabblet.css
Created July 20, 2013 23:09
Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
/**
* Loading animation like the one seen on http://www.freeger.com/projects/contextad/ with CSS
* Caveat: Not DRY. The content needs to be repeated in a data- attribute (or directly in the CSS).
*/
body {
background: #ccc51c;
min-height: 100%;
}
@DrewDahlman
DrewDahlman / facebook share
Last active December 30, 2015 14:59
Facebook Sharing requires - <script src='http://connect.facebook.net/en_US/all.js'></script>
var shareObj = {
method: 'feed',
link: 'http://LINKEXAMPLE.com',
picture: 'IMAGE URL',
name: 'NAME',
caption: 'EXAMPLE.com',
description: "DESCRIPTION",
};
// FB setup ---------------------------------------------