This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @author Mark Guinn <mark@adaircreative.com> | |
* @date 12.18.2015 | |
* @package simple-giving | |
* @subpackage auth | |
*/ | |
class FacebookApi extends Object implements ISocialApi | |
{ | |
/** @var string */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Simple extension of the default Requirements_Backend that | |
* allows you to specify exactly where css and js is placed | |
* via html comments: | |
* | |
* <!-- INSERT CSS HERE --> | |
* <!-- INSERT JS HERE --> | |
* | |
* If either is not present, it will fall back to the default rules. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @param array $data | |
* @return SS_HTTPResponse | |
*/ | |
protected function returnJson(array $data) { | |
$response = $this->getController()->getResponse(); | |
$response->addHeader('Content-type', 'application/json'); | |
$response->setBody(json_encode($data)); | |
return $response; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Creates a Flat table view for a given class | |
* @author Mark Guinn <mark@adaircreative.com> | |
* @date 06.13.2014 | |
*/ | |
class CreateViewForClass extends BuildTask | |
{ | |
protected $title = 'DEV: Flat View for Class'; | |
protected $description = 'Use class=XXXX to create a flat view of all the tables that make up a given class'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
Results on my Macbook: | |
Native function (no Object, no traits): 0.12234592 | |
Native function (no Object, traits): 0.13018894 | |
Native function (traits): 0.15913486 | |
Native function (extension): 0.12871218 | |
Mixin function (traits): 0.12146902 | |
Mixin function (extension): 4.077214 | |
Random functions (traits): 0.46887112 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ document.body.style.overflow='scroll'; })(); |