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
// 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 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 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 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 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 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 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 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
description "Mailhog" | |
start on runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
pre-start script | |
exec su - vagrant -c "/usr/bin/env /usr/local/bin/mailhog > /dev/null 2>&1 &" | |
end script |
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 | |
namespace Application\View\Extension; | |
use Aura\Router\Router; | |
use Foil\Contracts\ExtensionInterface; | |
class UrlFor | |
implements ExtensionInterface | |
{ | |
/** |