Mistři v programování na #hovnokod

Formátovanie dátumov na úrovni.

string dateFromSql = string.Format("{0}{1}{2}", dateFrom.Year, dateFrom.Month.ToString().PadLeft(2, '0'), dateFrom.Day.ToString().PadLeft(2, '0'));
string dateToSql = string.Format("{0}{1}{2}", dateTo.Year, dateTo.Month.ToString().PadLeft(2, '0'), dateTo.Day.ToString().PadLeft(2, '0'));

Anonymous,

zaujima definicia jedneho fontu

@font-face {
    font-family: lbregular;
    src: url(/assets/font/LibreBaskerville-Regular.otf);
}
@font-face {
    font-family: lbbold;
    src: url(/assets/font/LibreBaskerville-Bold.otf);
}
@font-face {
    font-family: lbitalic;
    src: url(/assets/font/LibreBaskerville-Italic.otf);
}
@font-face {
    font-family: cdregular;
    src: url(/assets/font/CinzelDecorative-Regular.ttf);
}
@font-face {
    font-family: cdbold;
    src: url(/assets/font/CinzelDecorative-Bold.ttf);
}

Anonymous,


Anonymous,


Anonymous,

Replace numbers

<?php

// ...

for($i = 0; $i < 10; $i++) $code = str_replace($i , '', $code);



Anonymous,