Skip to content

Instantly share code, notes, and snippets.

Dockerfile

FROM centos
LABEL maintainer "[email protected]" 
RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN rpm -ivh http://rpms.remirepo.net/enterprise/remi-release-8.rpm
RUN yum update -y
RUN yum install unzip php74 php74-php php74-php-fpm php74-php-pecl-mysql php74-php-mcrypt php74-php-mbstring php74-php-pdo php74-php-xml php74-php-pecl-zip php74-php-common php74-php-pecl-crypto -y
RUN ln -s /usr/bin/php74 /usr/bin/php
#pragma once

using namespace std;

class Node
{

public:
	
class Scheduler
{

	protected $actions = [];

	function invoke( $func, $deadline )
	{
		$this->actions[] = [ "deadline" => $deadline, "func" => $func ];
	}
<?php

function countup( $steps )
{

    // Internal State
    $counter = 1;   

    $run = function() use ( $steps, &$counter, &$run )
<?php

$list = [ 1, 2, 3, 4, 5 ];

function dumpArray( array $list )
{
    foreach ( $list as $key => $value )
    {

How to test your SSL setup with Python

1- Install Selenium

pip install -U selenium

2- Download Firefox from here and exract it next to your Test file:

Download Firefox for Linux

let observer = null;

Vue.directive('selectable', {
		
    	bind: function (el, binding) {
        
				let node = binding.value.node
        let prop = binding.value.prop
        let value = binding.value.value
$files = [
  0 => "bbc",
  1 => "bbc/images",
  2 => "bbc/images/1",
  3 => "bbc/videos",
  4 => "bbc/videos/10",
  5 => "cnn",
  6 => "cnn/images",
<?php

$json = file_get_contents("php://input");
echo $json;
database/seeds/DatabaseSeeder.php
<?php

use Illuminate\Database\Seeder;

class DatabaseSeeder extends Seeder