All Go Rust Python PHP JavaScript
Chrome Dev Summit to secure your spot in workshops, office hours and learning lounges!

How to Generate Random Integers Between 0 and 9 in Python

In Python, there are 3 ways to generate random integers between 0 and 9. Using randrange Method The random.randrange(start, stop[, step]) method returns a randomly selected element from range(start, stop, step). For example, #!/usr/bin/python3 ...
Patcher56

How to use the telnet command in Linux

user interface to the TELNET protocol. Telnet is an application protocol used on the Internet or local area network to provide a bidirectional interactive text-oriented communication facility using a virtual terminal connection. User data is interspe...

How to use the history command in Linux

history command is used to view the previously executed command. The history command works with the command history list. When the command is issued with no options, it prints the history list. The History library provides a history expansion featur...

How to use the curl command in Linux

command line tool and library for transferring data with URLs. cURL (pronounced 'curl') is a computer software project providing a library (libcurl) and command-line tool (curl) for transferring data using various network protocols. The name ...

How to use the cat command in Linux

Concatenate FILE(s), or standard input, to standard output. The cat command (short for “concatenate”) lists the contents of files to the terminal window. This is faster than opening the file in an editor, and there’s no chance you can accidentally a...

How to use the alias command in Linux

Alias command instructs the shell to replace one string with another string while executing the commands. The alias command lets you give your own name to a command or sequence of commands. You can then type your short name, and the shell will execu...

How to use the Angular CLI update command line

Updates your application and its dependencies. Perform a basic update to the current stable release of the core framework and CLI by running the following command. ng update ng update @angular/cli @angular/core The installed local...

How to use the Angular CLI test command line

Runs unit tests in a project. Takes the name of the project, as specified in the projects section of the angular.json workspace configuration file. When a project name is not supplied, it will execute for all projects. Set up testing ng...

How to use the Angular CLI serve command line

Builds and serves your app, rebuilding on file changes. ng serve is a great command to use when developing your application locally. It starts up a local development server, which will serve your application while you are developing it. It is not mea...

How to use the Angular CLI new command line

Create an Angular workspace.Creates and initializes a new Angular application that is the default project for a new workspace. Provides interactive prompts for optional configuration, such as adding routing support. All prompts can safely be allowed...

How to use the Angular CLI generate command line

Generates and/or modifies files based on a schematic.Creates a new, generic NgModule definition in the given or default project. NgModule ng generate module page/edit ng g m page/edit CREATE src/app/page/edit/edit.module.ts (19...

How to install Three.js

Three.js is a cross-browser JavaScript library and application programming interface (API) used to create and display animated 3D computer graphics in a web browser using WebGL.The aim of the project is to create an easy to use, lightweight, 3D libra...