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 | |
final class ImageCollection implements \Iterator, \JsonSerializable, \Countable | |
{ | |
private $data; | |
public function __construct(array $values) | |
{ | |
$this->data = (function (Image ...$values) { | |
return $values; |
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
#!/bin/bash | |
echo "setting frame buffer" && | |
xrandr --fb 12800x2880 && | |
echo "setting laptop monitor" && | |
xrandr --output eDP-1-1 --mode 3840x2160 --rate 60 --primary&& | |
echo "setting 27 inch monitor" && | |
xrandr --output DP-0.2 --mode 2560x1440 --scale-from 5120x2880 --panning 5120x2880+3840+0 --right-of eDP-1-1 && | |
echo "setting the samsung monitor" && | |
xrandr --output DP-0.1 --mode 1920x1080 --scale-from 3840x2160 --panning 3840x2160+8960+0 --right-of DP-0.2&& | |
echo "setting global scaling to 2x" && |
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 | |
namespace Sso\Action; | |
use League\OAuth2\Client\Provider\Facebook; | |
use League\OAuth2\Client\Provider\FacebookUser; | |
use League\OAuth2\Server\Entities\ClientEntityInterface; | |
use League\OAuth2\Server\Repositories\ClientRepositoryInterface; |
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
/** | |
* Creates an IN() expression with the given arguments. | |
* | |
* @param string $x Field in string format to be restricted by IN() function. | |
* @param mixed $y Argument to be used in IN() function. | |
* | |
* @return Expr\Func | |
*/ | |
public function in($x, $y) | |
{ |
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
### GET WDK for Windows 10: https://developer.microsoft.com/en-us/windows/hardware/windows-driver-kit | |
## Docs for devcon can be found at https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/devcon |
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
#!/bin/bash | |
src_dir=$1 | |
src_dir_length=${#src_dir} | |
dest_dir=$2 | |
file_type="ARW" | |
### let's use ufraw-batch. This assumes that you've compiled to the latest ... 0.22 as of this one doesn't cause crappy weirdness with red-spots appearing with under-exposure. | |
# Usage: ./convert_raw_to_jpeg.sh /source/folder /destination/folder | |
# | |
### |
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
#!/bin/bash -eux | |
# vi: ts=4 noexpandtab | |
# | |
# Generate a generic Vagrant Box. | |
# | |
# Vagrant images are essentially nothing more than OVA's with extra-metadata. | |
# | |
# We can't use the OVA's for Vagrant since Vagrant uses SSH to modify the instance. | |
# This build step creates a cloud-config ISO so that Cloud-Init will configure | |
# the initial user, creates meta-data that tells Vagrant how to interact with |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="ISO-8859-1"> | |
<title>Oauth test</title> | |
<script src="../js/jquery.js"></script> | |
<!-- Latest compiled and minified CSS --> |
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
<phpunit bootstrap="./bootstrap.php" colors="true"> | |
<testsuites> | |
<testsuite name="MyCompany Test Suite"> | |
<directory>./MyCompany/Service</directory> | |
</testsuite> | |
</testsuites> | |
<logging> | |
<log type="coverage-html" target="./log/codeCoverage" charset="UTF-8" | |
yui="true" highlight="true" lowUpperBound="50" highLowerBound="80" | |
showUncoveredFiles="false" /> |
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 | |
namespace MyCompany; | |
use Zend\Loader\AutoloaderFactory; | |
use Zend\Mvc\Service\ServiceManagerConfig; | |
use Zend\ServiceManager\ServiceManager; | |
error_reporting(E_ALL | E_STRICT); | |
chdir(__DIR__); | |
if (! defined('APPLICATION_ENV')) { |