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 php | |
<?php | |
// Crapy script to install and configure Behat in my PHP project | |
// Usage : curl -sS http://url/to/file | sh | |
$dockerRepo = 'https://github.com/jdecool/dockerfiles.git'; | |
$dependencies = [ | |
'behat/behat' => '~3.0', | |
'behat/mink' => '~1.6', |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<coverage generated="1407360405" clover="53e29d9514264"> | |
<project timestamp="1407360405" name="atoum code coverage"> | |
<package name="atoumCodeCoverage"> | |
<file name="BaseEntityWithFileManager.php" path="/home/jdecool/Workspace/NovawayFileManagementBundle/Manager/BaseEntityWithFileManager.php"> | |
<line num="55" type="stmt" complexity="0" count="1" falsecount="0" truecount="0" signature="" testduration="0" testsuccess="0"/> | |
<line num="56" type="stmt" complexity="0" count="1" falsecount="0" truecount="0" signature="" testduration="0" testsuccess="0"/> | |
<line num="59" type="stmt" complexity="0" count="1" falsecount="0" truecount="0" signature="" testduration="0" testsuccess="0"/> | |
<line num="60" type="stmt" complexity="0" count="1" falsecount="0" truecount="0" signature="" testduration="0" testsuccess="0"/> | |
<line num="62" type="stmt" complexity="0" count="1" falsecount="0" truecount="0" signature="" testduration="0" testsuccess=" |
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 debian:wheezy | |
MAINTAINER Jérémy DECOOL <[email protected]> | |
# Upgrade system | |
RUN apt-get update | |
RUN apt-get install build-essential vim htop curl unzip wget -y | |
# Java | |
RUN apt-get install openjdk-7-jre -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
<?php | |
namespace tests; | |
class BattleTest extends \PHPUnit_Framework_TestCase | |
{ | |
public function testMethods() | |
{ | |
$this->assertEquals('1', 1); // true | |
$this->assertLessThan('1', 0); // true |
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/sh | |
PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` | |
# Determine if a file list is passed | |
if [ "$#" -eq 1 ] | |
then | |
oIFS=$IFS | |
IFS=' |
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 php | |
<?php | |
define('ARG_NAME', 1); | |
define('ARG_VERSION', 2); | |
define('ARG_DESTINATION', 3); | |
installSkeleton($argv); | |
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
class Board | |
constructor: (@size = 9) -> | |
@grid = [] | |
init: -> | |
@grid = [] | |
for x in [0 .. @size - 1] | |
@grid.push([]) |
NewerOlder