Skip to content

Instantly share code, notes, and snippets.

View htndev's full-sized avatar
💭
400 Bad repositories.

Oleksandr Vanilchuk htndev

💭
400 Bad repositories.
View GitHub Profile
mixin penSvg
svg(width='12' height='12' viewbox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg')
path(d='M11.2227 0.77673C10.1898 -0.25891 8.50992 -0.25891 7.47696 0.77673L0.609311 7.64264C0.555617 7.69634 0.522379 7.76538 0.512151 7.83954L0.00334149 11.6088C-0.0119995 11.7162 0.026353 11.8236 0.100501 11.8977C0.164422 11.9616 0.253911 12 0.3434 12C0.358741 12 0.374082 12 0.389423 11.9974L2.65989 11.6906C2.8491 11.665 2.98205 11.4911 2.95648 11.3019C2.93091 11.1127 2.75705 10.9797 2.56784 11.0053L0.74738 11.2508L1.10278 8.62202L3.86927 11.3888C3.93319 11.4528 4.02268 11.4911 4.11217 11.4911C4.20166 11.4911 4.29115 11.4553 4.35507 11.3888L11.2227 4.52293C11.7239 4.02174 12 3.35688 12 2.64855C12 1.94023 11.7239 1.27537 11.2227 0.77673ZM7.60992 1.62058L8.76305 2.77385L2.49625 9.04139L1.34312 7.88812L7.60992 1.62058ZM4.11473 10.6575L2.98716 9.52981L9.25396 3.26227L10.3815 4.38996L4.11473 10.6575ZM10.8622 3.89644L8.10339 1.13729C8.45367 0.84833 8.89089 0.689787 9.35112 0.689787C9.87527 0.689787 10
.breadcrumbs
.separator
margin:
left: .5em
right: .5em
a
text-decoration: none
color: $secondary-header-color
@include font(Circe, 200, 14, 20)
&:hover
mixin breadcrumbs(main, chapter, chapterLink, title, titleLink)
p.breadcrumbs
a(href="/")= main
span.separator /
a(href=chapterLink)= chapter
span.separator /
a(href=titleLink aria-current="page")= title
@htndev
htndev / cli.js
Created October 15, 2019 15:51
Thumbnail generator
const [, , ...args] = process.argv,
fs = require('fs-extra'),
fsNative = require('fs'),
ip = require('ip').address(),
request = require('request'),
chalk = require('chalk'),
projectTitle = process.env.PWD.split('/').pop(),
puppeteer = require('puppeteer'),
http = require('http'),
jimp = require('jimp'),