Skip to content

Instantly share code, notes, and snippets.

View paranoiq's full-sized avatar
🍵
418 I am a teepot

Vlasta Neubauer paranoiq

🍵
418 I am a teepot
View GitHub Profile
@paranoiq
paranoiq / es.json
Last active October 5, 2022 15:40
ElasticSearch Query Language idea...
{
"fields": [
"id",
"startTime",
"priority",
"malePriority",
"lastFourDaysMaleViewsInCity1",
"commissionPerVisit",
"lastFourDaysViewsInCity1",
"lastFourDaysViews"
<?php declare(strict_types = 1);
/**
* This file is part of the SqlFtw library (https://github.com/sqlftw)
*
* Copyright (c) 2017 Vlasta Neubauer (@paranoiq)
*
* For the full copyright and license information read the file 'license.md', distributed with this source code
*/
// phpcs:disable Squiz.Arrays.ArrayDeclaration.ValueNoNewline
@paranoiq
paranoiq / index.php
Created November 29, 2022 12:25
Generator of the Supersymmetric Table of Cellular Automata
<?php
error_reporting(E_ALL);
function bin(int $n): string
{
$bin = str_pad(decbin($n), 8, '0', STR_PAD_LEFT);
return substr($bin, 0, 4) . ' ' . substr($bin, 4, 4);
}
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'