- Classes
- Methods
- Properties
- Variables
- Constants
- Namespaces
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
package main | |
import "fmt" | |
type AtmValue struct { | |
Val int | |
Count int | |
} | |
type ATM []AtmValue |
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 Mcustiel\Parallel\Arrays; | |
class IterableParallelProcessing | |
{ | |
const CHILD_STREAM_INDEX = 1; | |
const PARENT_STREAM_INDEX = 0; | |
const PROCESSES_WAIT_MICROSECONDS = 3000; |
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
#!/usr/bin/env bash | |
api=https://api.chucknorris.io/jokes/random | |
contents=$(curl -s $api) | |
if [ "$(echo $contents | jq -r '.value')" != "" ] ; then | |
echo $(echo $contents | jq -r '.value') | |
fi |
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 | |
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 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 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 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 | |
MESSAGE=$1 | |
# Idiot filter | |
if [ "$MESSAGE" = "-m" ]; then | |
MESSAGE=$2 | |
fi | |
CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD` |
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
# 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 | |
# [email protected] |
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
var mcustiel = mcustiel || { | |
isNamespace: function () { | |
return true; | |
}, | |
Namespace: (function (root) { | |
function NamespaceConstructor (root) { | |
var isNamespace = function (object) { | |
return object.isNamespace && object.isNamespace() | |
}, |
NewerOlder