Using Modules in Node.js
Posted on • tagged with #nodejs#javascript
Sometimes files can become quite large in a Node.js project. Modules provide developers a way to put related code into separate files and then export them to be used elsewhere.
Posted on • tagged with #nodejs#javascript
Sometimes files can become quite large in a Node.js project. Modules provide developers a way to put related code into separate files and then export them to be used elsewhere.
Posted on • tagged with #javascript
Removing duplicate values from an array is quite a common task in programming. Sometimes, specific scenarios require a collection of data to only store unique values. That is, no repeated values.
Posted on • tagged with #javascript
The Fibonacci sequence is a series of numbers where each number in the sequence is the sum of the two preceding numbers. This sequence begins with 0 and 1.
Posted on • tagged with #javascript
In JavaScript, arrays are predefined objects, where the indexes are the arrays properties. They can hold a collection of values with differing data types. The array is a go-to data structure for common list related tasks.
Posted on • tagged with #javascript#hackerrank
This article will discuss how to solve the "diagonal difference" problem which involves calculating the diagonal difference of a n x n size square matrix.
Posted on • tagged with #git
To begin contributing to open-source software, you might want to become familiar with Git. Understanding the workflow of creating your own local copy of a repository and keeping it up to date with the upstream repository is integral to start creating PRs in public projects.
Posted on • tagged with #javascript#eleventy
Creating search functionality for a static site isn't always easy. Luckily, using custom data attributes and a bit of JavaScript. You can filter blog posts by comparing the search input to post titles and visually hide posts that don't match the search query.
Posted on • tagged with #javascript#advent-of-code
Have you ever had an array of values that you needed to convert to an object? I've run into this scenario quite a few times and wanted to write about it.
Posted on • tagged with #css#html
Sometimes you need to select elements from the page for styling but don't want to write the class or ID selector many times in your stylesheet. This is where CSS combinators come into play.
Posted on • tagged with #eleventy#nunjucks#html
If you've built sites using Eleventy, you're probably familiar with collections. Using the Configuration API allows for creating custom collections which can be useful to only show certain posts on your site.
Posted on • tagged with #eleventy#nunjucks#html
There are many great features to choose from when building websites with Eleventy. One feature in particular that I find very useful is the ability to iterate over a global data file and generate page content using Nunjucks.
Posted on • tagged with #html#javascript
Have you ever thought to yourself while building a website, how could I create HTML elements and bind them to the DOM? This article explains some of the fundamentals for interacting with the DOM tree using client-side JavaScript.
Posted on • tagged with #security#shell
How familiar are you with using SSH? If you hesitated to answer, don't fear as after reading this article you will understand how to perform a secure remote connection using SSH and work in the server environment.