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
tasklist /FI "IMAGENAME eq ssh-agent.exe" 2>NUL | grep 'ssh-agent.exe' >NUL | |
@if "%ERRORLEVEL%"=="0" ( | |
echo ssh-agent is running | |
call %CMDER_ROOT%\vendor\call.cmd | |
) else ( | |
ssh-agent | grep -v echo | sed -e "s/^/@set /" | sed -e "s/;.*$//" - > %CMDER_ROOT%\vendor\call.cmd | |
call %CMDER_ROOT%\vendor\call.cmd | |
ssh-add %USERPROFILE%\.ssh\ppk\id_rsa :: Add private keys here | |
) |
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
public class StreetMap { | |
private final Point origin; | |
private final Point destination; | |
private final Color waterColor; | |
private final Color landColor; | |
private final Color highTrafficColor; | |
private final Color mediumTrafficColor; | |
private final Color lowTrafficColor; |
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
FROM php:5.6.24-fpm | |
RUN apt-get update && apt-get -y install git gzip wget libgcrypt11-dev zlib1g-dev zip bzip2 | |
RUN apt-get -y install libbz2-dev | |
RUN docker-php-ext-install zip bz2 | |
RUN cd /usr/local/bin && echo '<?php file_put_contents("composer.phar", file_get_contents("https://getcomposer.org/composer.phar")); ' | php | |
RUN cd /usr/local/bin && echo '#!/bin/bash\nDIR=$(dirname $0)\nphp $DIR/composer.phar "$@"' > composer && chmod +x composer |
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
var mcustiel = mcustiel || { | |
isNamespace: function () { | |
return true; | |
}, | |
Namespace: (function (root) { | |
function NamespaceConstructor (root) { | |
var isNamespace = function (object) { | |
return object.isNamespace && object.isNamespace() | |
}, |
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 Mcustiel\Tests; | |
use setasign\Fpdi\Fpdi; | |
class MyFpdi extends Fpdi | |
{ | |
const NEW_LINE = "\n"; | |
const CARRIAGE_RETURN = "\r"; | |
const SPACE = ' '; |
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 AppBundle\Tests\Repository\PHPUnit; | |
use Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand; | |
use Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand; | |
use Doctrine\Bundle\MigrationsBundle\Command\MigrationsMigrateDoctrineCommand; | |
use Exception; | |
use PHPUnit_Framework_BaseTestListener; | |
use PHPUnit_Framework_Test; | |
use PHPUnit_Framework_TestSuite; |
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
# This hosts file is brought to you by Dan Pollock and can be found at | |
# http://someonewhocares.org/hosts/ | |
# You are free to copy and distribute this file for non-commercial uses, | |
# as long the original URL and attribution is included. | |
# | |
# See below for acknowledgements. | |
# Please forward any additions, corrections or comments by email to | |
# hosts@someonewhocares.org |
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 bash | |
set -e | |
set -o | |
YES="1" | |
NO="0" | |
EMPTY="" | |
FORCE_DB_INSTALL=${NO} |
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 | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
//echo "PUBLIC INDEX"; | |
//var_dump($_SERVER); | |
class ViewModel { | |
private $pageTitle = "I am the title"; | |
public function pageTitle() { |
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 Mcustiel\Parallel\Arrays; | |
class IterableParallelProcessing | |
{ | |
const CHILD_STREAM_INDEX = 1; | |
const PARENT_STREAM_INDEX = 0; | |
const PROCESSES_WAIT_MICROSECONDS = 3000; |
OlderNewer