Skip to content

Instantly share code, notes, and snippets.

View andrew-kzoo's full-sized avatar

Andrew Collins andrew-kzoo

View GitHub Profile
<?php
use Monolog\Logger;
use Monolog\Handler\AbstractProcessingHandler;
class PDOHandler extends AbstractProcessingHandler
{
private $initialized = false;
private $pdo;
private $statement;
@andrew-kzoo
andrew-kzoo / KalamazooCollege.geojson
Created June 17, 2013 13:38
Kalamazoo College, also known as K College or simply K, is a private liberal arts college in Kalamazoo, Michigan. Founded in 1833, the college is among the 100 oldest in the country.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?php
function getSharePointVersion($url)
{
$headers = array();
$raw_headers = get_headers($url);
foreach($raw_headers as $index => $raw_header)
{
/**
* Simple javascript rules engine
*
* @author Bryan Elliott
* @link http://codemonkeybryan.com
*
* A RuleSet is essentially a simple list of voters. By executing the RuleSet,
* you iterate over the voters and obtain a done/fail event via jQuery's Deferred
* interface.
*