This file contains hidden or 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 | |
use OAuth\ServiceFactory; | |
use OAuth\Common\Storage\Session; | |
use OAuth\Common\Consumer\Credentials; | |
// create a factory | |
// optional constructor argument defines the type of http client to use for the services this factory creates | |
$factory = new ServiceFactory(); | |
// tokenstorageinterface implementation |
This file contains hidden or 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
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <ws2tcpip.h> | |
#include <iphlpapi.h> | |
#pragma comment(lib, "iphlpapi.lib") | |
#pragma comment(lib, "ws2_32.lib") | |
int main() |
This file contains hidden or 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 | |
class ClientSideSessionHandler implements SessionHandlerInterface | |
{ | |
const SESSION_COOKIE_NAME = 'data'; | |
private $cryptor; | |
private $cookieJar; | |
private $encryptionKey; | |
private $signingKey; | |
This file contains hidden or 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 | |
/** | |
* Calculates the amount of overlap between a source time range and a variable number of compared time ranges. | |
* Implements a subset of Allen's Interval Algebra. | |
* With contributions by rdlowery. | |
*/ | |
class OverlapCalculator { | |
/** | |
* @var int |