How to use “Legacy Build System” in Xcode 11

March 13, 2020 Goodman

This post will show you how to use the Legacy Build System in Xcode 11.x. Firstly, open your project with Xcode and navigate to File > Workspace Settings. Next, select “Legacy Build System” and click on…

React Navigation 5: Hide header bar on specific screens

February 24, 2020 Goodman

To hide the header bar on a specific screen with React Navigation 5.0 or newer in React Native, just use: Full example App.js:

React Native: handle TextInput, Button events with state hook

February 17, 2020 Goodman

This article will show you how to handle TextInput, Button events in React Native with state hook. You will also learn how to dismiss the device’s keyboard after the button is pressed. I used Expo and…

[JS] Generate a random number between “min” and “max” and exclude a specific number

February 17, 2020 Goodman

This article will show you how to generate a random number between a minimum number and a max number and the random number you get will always be different from a given specific number. The code:…

Passing data from a child component to a parent component in React

February 17, 2020 Goodman

In React, passing data from a parent component into a child component is quite easy with “props”. On the other hand, passing data from a child component to a parent component is a little more complicated…

A few examples of exports and require in Node.js

February 10, 2020 Goodman

A few easy-to-understand examples below will help you understand “exports” and “require” in Node.js better. Example 1 Exports (file your-file.js): Require (file index.js) Examples 2 Export (call it your-file.js or whatever you like): Require:

How to get all links from a webpage using Node.js

February 10, 2020 Goodman

In this article, we will crawl all links (including “href” and “title”) using Node.js and 2 packages: cheerio and request-promise. Installation: Code: Simple as that. From here you are pretty good to go. Now, you can…

Simple Promise chain example in modern Javascript (ES6+)

February 9, 2020 Goodman

A simple and easy to understand example of how to use Promise chain in modern Javascript (ES6, ES7, ES8 or higher). Output:

Javascript: Get current date time as 20xx/00/00 00:00:00 format

February 9, 2020 Goodman

In this tutorial, we will create a new Date object then use the getFullYear(), getMonth(), getDate(), getHours(), getMinutes(), getSeconds() methods to get the current date-time in Javascript. To make sure the month, date, hour, minute, second…

How to show all installed extensions in VS Code

February 5, 2020 Goodman

This article shows you how to show all installed extensions in the VS Code. First, click on the Extensions icon or press Ctrl + Shift + X. Next, click on the “three dots” icon. After that,…

How to use react-ga to track your React website traffic

February 5, 2020 Goodman

This tutorial shows you how to track your React app (or website) traffic with Google Analytics. Prerequisites A Google Analytics account Basic React knowledge Installation Code Create a file and call it MyGa.js: Usage Simple way:…

How to use Font Awesome icons in React

January 28, 2020 Goodman

This article will show you how to use Font Awesome icons in a React app. Firstly, let’s install the necessary packages. Next, import the icons you need into your React component. Note that if an icon…

How to remove WordPress logo on the admin bar without plugins

January 27, 2020 Goodman

In order to remove the WordPress logo on the admin bar, just place the code snippet below into your functions.php: Simple as that 🙂

How to disable post tag in WordPress

January 27, 2020 Goodman

You can easily disable post tag in WordPress by adding the code below into your functions.php: That’s it.

1 2 3 4