Skip to content

Instantly share code, notes, and snippets.

View fkulakov's full-sized avatar

Fyodor Kulakov fkulakov

View GitHub Profile
@fkulakov
fkulakov / date.js
Last active December 26, 2021 01:40
Y-m-d H:i:s date format in JavaScript
new Date().toJSON().split('.')[0].split('T').join(' ');
@fkulakov
fkulakov / pipe.php
Last active November 5, 2019 12:57
Pipe example
<?php declare(strict_types=1);
/**
* @param null $_
*
* @return object
*/
function pipe(&$_)
{
return new class($_)