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 | |
| /** | |
| * @file | |
| * Contains \dlundgren\MiddlewareStack\PriorityQueue | |
| */ | |
| namespace dlundgren\MiddlewareStack; | |
| use dlundgren\MiddlewareStack\PriorityQueue; |
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
| #!/usr/bin/env python | |
| # | |
| # Checks the Azure AD Connect status in Office 365 | |
| # | |
| # The user used to check the Azure AD Connect status needs to be an Administrator of some sort | |
| # | |
| # Setup: | |
| # pip install mechanize | |
| # | |
| # Usage: |
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 | |
| /** | |
| * @copyright 2015-2016 (c) David Lundgren | |
| * @license MIT <http://opensource.org/licenses/mit-license.php> | |
| */ | |
| namespace SqlServer\Collection; | |
| /** | |
| * Abstract class for representing SQL Server Collections | |
| * |
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
| diff --git a/script/spider.py b/script/spider.py | |
| index d8e4c66..66038f9 100644 | |
| --- a/script/spider.py | |
| +++ b/script/spider.py | |
| @@ -1,7 +1,7 @@ | |
| import argparse | |
| from utils import ip_address, config_file | |
| from packtpub import Packpub | |
| -from upload import Upload, SERVICE_DRIVE, SERVICE_DROPBOX | |
| +#from upload import Upload, SERVICE_DRIVE, SERVICE_DROPBOX |
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 | |
| // composer require --no-dev google/apiclient | |
| // composer require --no-dev google/apiclient-services | |
| require_once __DIR__ . '/vendor/autoload.php'; | |
| $config = [ | |
| // configure stuff here for Google_Client | |
| ]; | |
| $dir = new Google_Service_Directory(new Google_Client($config)); |
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 Google\Auth\Credentials\ServiceAccountCredentials; | |
| use Google\Auth\Middleware\AuthTokenMiddleware; | |
| use GuzzleHttp\Client; | |
| use GuzzleHttp\HandlerStack; | |
| /** | |
| * Class GoogleUserPassword | |
| * | |
| * Follow the instructions at {https://developers.google.com/identity/protocols/OAuth2ServiceAccount?hl=en_US#delegatingauthority} |
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 | |
| /** | |
| * Similar to array_diff() but works with the base multidimensional arrays | |
| * | |
| * @params array ... | |
| * @return array | |
| */ | |
| function arrayDiff() | |
| { | |
| $arys = func_get_args(); |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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 | |
| /** | |
| * Simple static proxy trait | |
| * | |
| * Aura DI is used for lazy loading | |
| * | |
| * Set `const PROXY_IDENTIFIER = "SomeClass" in your proxy class, and use this trait. | |
| * | |
| * Call `Some\Proxy\SomeClass::register(new SomeClassInstance)` to have it register the alias. | |
| * |
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 | |
| /** | |
| * | |
| * This file is part of Aura for PHP. | |
| * | |
| * @license http://opensource.org/licenses/MIT MIT | |
| * | |
| */ | |
| use Aura\Di\Resolver\Resolver; |