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 | |
define('BASE62_CHARS', '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'); | |
function base62_encode(int $input): string { | |
$output = ''; | |
for($i = floor(log10($input) / log10(62)); $i >= 0; --$i) { | |
$index = (int)floor($input / (62 ** $i)); | |
$output .= substr(BASE62_CHARS, $index, 1); | |
$input -= $index * (62 ** $i); |
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 | |
define('SCRATCH_DIR', __DIR__ . DIRECTORY_SEPARATOR . '_scratch2'); | |
define('SRC_MARIE', __DIR__ . DIRECTORY_SEPARATOR . 'marie' . DIRECTORY_SEPARATOR . '.git'); | |
define('SRC_NERU', __DIR__ . DIRECTORY_SEPARATOR . 'srv-neru' . DIRECTORY_SEPARATOR . '.git'); | |
define('TGT_MARIE', 'C:\Users\flash\Desktop\target\db-marie\\.git'); | |
define('TGT_NERU', 'C:\Users\flash\Desktop\target\db-neru\\.git'); | |
$sourceGit = SRC_NERU; | |
$targetGit = TGT_NERU; |
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
-- -------------------------------------------------------- | |
-- Host: 127.0.0.1 | |
-- Server version: 10.6.9-MariaDB-1:10.6.9+maria~ubu2004 - mariadb.org binary distribution | |
-- Server OS: debian-linux-gnu | |
-- HeidiSQL Version: 12.1.0.6537 | |
-- -------------------------------------------------------- | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET NAMES utf8 */; | |
/*!50503 SET NAMES utf8mb4 */; |
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
Silver #C0C0C0 | |
Citrine #F2D839 | |
Orange #FFA500 | |
Pumpkin #FF7518 | |
Red #F50000 | |
Crimson #C00000 | |
Ruby #E0115F | |
Amaranth #E52B50 | |
Thulite #DE6FA1 | |
Pink #FF6FF2 |
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 | |
printf('[%s] Collecting...%s', date('H:i:s'), PHP_EOL); | |
$pngs = glob('tadne_png/*.png'); | |
printf('[%s] Starting...%s', date('H:i:s'), PHP_EOL); | |
foreach($pngs as $png) { | |
printf('[%s] %s%s', date('H:i:s'), $png, PHP_EOL); |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
namespace MusicManager { | |
public class Playlist : IDisposable, IEnumerable<string> { | |
private Stream Stream { get; } |
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 Marquee = function(element) { | |
if(element) | |
this.element = element; | |
else { | |
this.element = document.createElement('div'); | |
this.element.className = 'js-marquee'; | |
} | |
this.body = element.firstElementChild; | |
if(!this.body) { |
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
orange: #f78f2e | |
yellow orange: #fedc0c | |
lime green: #d1f20a | |
pink: #fe447d | |
emerald green: #5cd05b | |
teal: #03c1cd | |
blue: #0e10e6 | |
violet: #9208e7 | |
red orange: #f84c00 | |
yellow: #f3f354 |
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 Index\Router; | |
class Route { | |
public const METHODS = ['GET', 'POST']; | |
private $methods = []; | |
private $path = ''; | |
private $handler; | |
private $pathIsRegex = false; |
NewerOlder