Generate Markdown files
Ever wondered how to DRY (Don’t Repeat Yourself) in a README.md
file? Or generate contents in any Markdown file? As it turns out, it’s quite simple.
Ever wondered how to DRY (Don’t Repeat Yourself) in a README.md
file? Or generate contents in any Markdown file? As it turns out, it’s quite simple.
Let’s assume we want to retrieve some data from an API and show it together with the original data. For instance, I’ll use the DuckDuckGo API to find capital names for countries.
…VS Code itself is awesome, but some extensions add more magic to it :). I like adding new extensions (then forgetting I have them or how to use them), and there are some that I would like to share with. So below is the list of my VS Code extensions that help developing both the front-end and the back-end.
…Sometimes I create pages with minimal interaction and amount of JavaScript – for instance, with a hamburger menu, toggle or tabs. They require simple yet repetitive JavaScript code. There are nice big components or frameworks that solve this problem (like Bootstrap, React, Vue), but the problem is their size and often a complexity to set up. Recently (in November 2019), a new library emerged – Alpine.js.
Read moreI was very disappointed when a popular Google Analytics WordPress plugin moved most of its features to a $200 / year plan. I looked for a free alternative because I had very little requirements: add the tracking code to the page and track page scroll. It’s barely a dozen lines of code using autotrack. I think I have checked all WordPress plugins that appeared after searching for “Google Analytics” and I found only ONE that met the requirement. Unfortunately, it was not compatible with Google Analytics (analytics.js
code), but only with Google Tag Manager (gtm.js
)…
I don’t want to create a guide on the declaration files but only share some tips: what is an ambient declaration, what’s specific about ambient namespaces and what is the result of using ambient namespaces.
…When installing packages to a Node.js project, many people stick with the default npm. Many people also use its alternative, yarn, but few know about more uncommon ones like pnpm or dry.
…Most of my Node.js projects require some build routine. As a fan of minimalism, for simple builds I used to write short scripts operating directly on fs
. In order to avoid duplication and simplify the process for future, I created a simple npm package. I described the required steps below.
There are many frameworks for testing a Node.js project. Too many. And most of them require huge dependencies. Check the brief report below to find out.
…The script I created in Course/movie labeling solution using Firebase and ViolentMonkey worked well on one page but randomly failed to work in another. It was caused by the page’s JavaScript code which altered the behavior of XMLHttpRequest. Because I was not able to resolve it, I decided to convert my script into a Chrome extension, which would be executed in an isolated environment.
…