Skip to content

Instantly share code, notes, and snippets.

View NaimNaimov's full-sized avatar

Naim Naimov NaimNaimov

View GitHub Profile
<header>
<h1>Blog Style Test</h1>
<nav aria-label="Breadcrumb">
<ol>
<li><a href="#top">Home</a></li>
<li><a href="#article">Article</a></li>
<li aria-current="page">Current Page</li>
</ol>
</nav>
</header>
@NaimNaimov
NaimNaimov / gutenberg-sample-content.html
Created December 16, 2022 15:04 — forked from mailenkno/gutenberg-sample-content.html
WordPress Gutenberg Sample Content
<!-- wp:paragraph {"align":"center","customTextColor":"#000000","backgroundColor":"very-light-gray","fontSize":"small"} -->
<p style="color:#000000;text-align:center" class="has-background has-small-font-size has-very-light-gray-background-color">Gutenberg Sample Content.<br/>Put together with ❤️ by <a href="https://artisanthemes.io/">Artisan Themes</a>.</p>
<!-- /wp:paragraph -->
<!-- wp:heading {"level":1} -->
<h1>This is a heading (H1)</h1>
<!-- /wp:heading -->
<!-- wp:heading -->
<h2>This is a heading (H2)</h2>
@NaimNaimov
NaimNaimov / pdf.sh
Created December 17, 2019 12:24
Build a PDF from Markdown files using mpdf
command -v mdpdf >/dev/null 2>&1 || { echo >&2 "mdpdf is required but it's not installed. Install with 'npm install mdpdf -g'"; return 1; }
TMPFILE=`mktemp /tmp/spec.XXXXXX.md`
if [ $? -ne 0 ]; then
echo "Could not create temp file"
exit 1
fi
cat *.md > $TMPFILE
@NaimNaimov
NaimNaimov / Generate Random posts
Last active July 20, 2019 22:09
Generate random posts, with acf custom meta.
function generateRandomString($length = 10) {
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, $charactersLength - 1)];
}
return $randomString;
}