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
version: '3' | |
networks: | |
reverse-proxy: {} | |
wp-test: {} | |
volumes: | |
wp-test-db: {} | |
services: |
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 | |
function guardWithModulo($d, $s) | |
{ | |
return function ($i) use ($d, $s) { | |
return ($i % $d === 0) ? $s : null; | |
}; | |
} | |
$cbs = [ |
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 | |
$list = <<<LIST | |
1 Introduction | |
1.1 Purpose | |
<Identify the product whose software requirements are specified in this document, including the revision or release number Describe the scope of the product that is covered by this SRS, particularly if this SRS describes only part of the system or a single subsystem.> | |
1.2 Document Conventions | |
<Describe any standards or typographical conventions that were followed when writing this SRS, such as fonts or highlighting that have special significance For example, state whether priorities for higher-level requirements are assumed to be inherited by detailed requirements, or whether every requirement statement is to have its own priority.> | |
1.3 Intended Audience and Reading Suggestions | |
<Describe the different types of reader that the document is intended for, such as developers, project managers, marketing staff, users, testers, and documentation writers Describe what the rest of this SRS contains and how it is organized Suggest a sequence for reading the document, b |
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 NDimensionalArray extends Array { | |
constructor (size, ...sizes) { | |
super(size) | |
super.fill(undefined) | |
if (sizes.length) { | |
size = sizes.shift() | |
this.forEach((_, i) => this[i] = new NDimensionalArray(size, ...sizes)) | |
} | |
} |
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
const spriteStyleSheet = buildSpriteStyleSheet('http://rogueliketutorials.com/images/arial10x10.png', 10, 10, [ | |
[' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?'], | |
['@', '[', '\\', ']', '^', '_', '`', '{', '|', '}', '~'], | |
[], | |
['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'], | |
['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'], | |
]) | |
function buildSpriteStyleSheet (url, width, height, charMap) { | |
return charMap |
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 | |
function urlToHtml(string ...$urls) | |
{ | |
$cache = array_map('sha1', $urls); | |
$ttl = array_fill(0, count($urls), null); | |
$res = []; | |
$ch = []; | |
$mh = curl_multi_init(); | |
$options = [ |
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 | |
function format(array $data, string $type): string | |
{ | |
$data = array_map(function ($obj) { | |
return array_map(function ($value) { | |
if ($value === null) { | |
return 'null'; | |
} | |
if ($value === 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
var textArea = document.createElement('textarea'); | |
textArea.setAttribute('id', 'disavow-quicklist'); | |
document.body.appendChild(textArea); | |
var $textArea = $('#disavow-quicklist'); | |
$textArea.css({ | |
top: 100, | |
left: 0, | |
position: 'fixed', |
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
(function ($) { | |
function randInt(max, min) { | |
max = max || 1; | |
min = min || 0; | |
return parseInt(Math.random() * (max - min)) + min; | |
} | |
var letters = [ | |
"a", "b", "c", "d", "e", "f", "g", "h", | |
"i", "j", "k", "l", "m", "n", "o", "p", |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" | |
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
body { |