Accueil / Programmation

Programmation

(English) Compile and link C++ source codes and headers from terminal in MacOS

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

(English) Optional Parameters in Java: Common Strategies and Approaches

Optional Parameters in Java

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

(English) Introduction to default parameters in C++

Default parameters in C++

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

How to create a temporary file to store data

Create temporary files

Your application has to write data out in a temporary file to reprocess them before rendering to users. The file will be created temporarily and swept our when the application restarts or shuts down. How do we create such a ...

Lire la suite...

Fastest way to get the first n elements of a List into an Array

Fastest way to get the first n elements of a List or an Array

def s = ‘Hello Groovy world!’ assert s.take(5) == ‘Hello’ assert s.drop(6) == ‘Groovy world!’ Python Let’s assume an arbitrary list/array: in_list = list(range(10)) // Python2: in_list = range(10) // in_array = [i for i in range(10)] Slicing the list ...

Lire la suite...

(English) Create Symbolic Links on Windows

Create symbolic links on Windows

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

Use PowerShell to Set Environment Variables

Use PowerShell to Set Environment Variables

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

(English) Create and manage virtual environments in Python

Create and manage virtual environments in Python

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

Popularly Used Commands In Vim

Screen at starting VIM with --startuptime vim.log

Désolé, cet article est seulement disponible en Anglais.

Lire la suite...

Checking existence of an element in an array with JavaScript

Checking existence of an element in an array with JavaScript

JavaScript is a loosely typed or a dynamic language. Variables in JavaScript are not directly associated with any particular value type, and any variable can be assigned (and reassigned) values of all types. In other words, everything in JavaScript is ...

Lire la suite...