title
stringlengths
3
221
text
stringlengths
17
477k
parsed
listlengths
0
3.17k
Basic Line Chart With Customizable axis and tick labels
Following is an example of a basic line chart with customized axis and tick labels. We've already seen the configuration used to draw this chart in Google Charts Configuration Syntax chapter. So, let's see the complete example. We've added textStyle and titleTextStyle configurations to change default text styles. // Se...
[ { "code": null, "e": 2489, "s": 2261, "text": "Following is an example of a basic line chart with customized axis and tick labels. We've already seen the configuration used to draw this chart in Google Charts Configuration Syntax chapter. So, let's see the complete example." }, { "code": nul...
Use LIKE % to fetch multiple values in a single MySQL query
To fetch multiple values wit LIKE, use the LIKE operator along with OR operator. Let us first create a table − mysql> create table DemoTable1027 ( Id int, Name varchar(100) ); Query OK, 0 rows affected (1.64 sec) Insert some records in the table using insert command − mysql> insert into DemoTable1027 values(100,'...
[ { "code": null, "e": 1173, "s": 1062, "text": "To fetch multiple values wit LIKE, use the LIKE operator along with OR operator. Let us first create a table −" }, { "code": null, "e": 1281, "s": 1173, "text": "mysql> create table DemoTable1027\n(\n Id int,\n Name varchar(100)\...
How to work with Invoke-Command Scriptblock output?
When we simply write the Invoke-Command, it shows the output on the console. Invoke-Command -ComputerName Test1-Win2k12 -ScriptBlock {Get-Service} It shows the output along with the computer name. Now let's say you want to sort the output or you want to work with the output you need to store it. It is similar like we s...
[ { "code": null, "e": 1139, "s": 1062, "text": "When we simply write the Invoke-Command, it shows the output on the console." }, { "code": null, "e": 1209, "s": 1139, "text": "Invoke-Command -ComputerName Test1-Win2k12 -ScriptBlock {Get-Service}" }, { "code": null, "e"...
How to read Microsoft Word with Python?
No offense, I do not like Microsoft word neither spreadsheets. Being a Data Engineering specialist, I often receive test results from testers in Microsoft word. Sigh! they put so much information into word document right from capturing screen shots, links, big, very big, very very big paragraphs. Microsoft word had par...
[ { "code": null, "e": 1558, "s": 1062, "text": "No offense, I do not like Microsoft word neither spreadsheets. Being a Data Engineering specialist, I often receive test results from testers in Microsoft word. Sigh! they put so much information into word document right from capturing screen shots, lin...
Practical uses of merge, join and concat | by Magdalena Konkiewicz | Towards Data Science
In this article, we will talk about combining data frames. You are probably very familiar with load functions in pandas that allow you to get access to data in order to do some analysis. However, what happens if your data is not in one file but scattered across multiple ones? In that case, you will need to load the fil...
[ { "code": null, "e": 359, "s": 172, "text": "In this article, we will talk about combining data frames. You are probably very familiar with load functions in pandas that allow you to get access to data in order to do some analysis." }, { "code": null, "e": 576, "s": 359, "text": ...
How to read from a file in Python - GeeksforGeeks
28 Nov, 2019 Python provides inbuilt functions for creating, writing and reading files. There are two types of files that can be handled in python, normal text files and binary files (written in binary language, 0s and 1s). Text files: In this type of file, Each line of text is terminated with a special character calle...
[ { "code": null, "e": 41553, "s": 41525, "text": "\n28 Nov, 2019" }, { "code": null, "e": 41764, "s": 41553, "text": "Python provides inbuilt functions for creating, writing and reading files. There are two types of files that can be handled in python, normal text files and binary...
strchr() function in C++ and its applications
In this article, we will be discussing the working, syntax, and examples of strchr() function in C++ STL. strchr() function is an inbuilt function in C++ STL, which is defined in the <cstring> header file. strchr() function is used to find when the character first occurred in the string. This function returns the point...
[ { "code": null, "e": 1168, "s": 1062, "text": "In this article, we will be discussing the working, syntax, and examples of strchr() function in C++ STL." }, { "code": null, "e": 1451, "s": 1168, "text": "strchr() function is an inbuilt function in C++ STL, which is defined in the...
Map a 10-bit number to 8-bit in Arduino
Mappings often have to be performed in Arduino for a variety of reasons. One example would be mapping the 10-bit ADC output to 8-bit to save on storage. A 10-bit number would occupy 2-bytes for storage, whereas an 8-bit number would occupy just one byte and still preserve most of the information of the 10-bit number. A...
[ { "code": null, "e": 1381, "s": 1062, "text": "Mappings often have to be performed in Arduino for a variety of reasons. One example would be mapping the 10-bit ADC output to 8-bit to save on storage. A 10-bit number would occupy 2-bytes for storage, whereas an 8-bit number would occupy just one byte...
deque::pop_front() and deque::pop_back() in C++ STL - GeeksforGeeks
06 Oct, 2021 Deque or Double ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but are more efficient in case of insertion and deletion of elements at the end, and also the beginning. Unlike vectors, contiguous storage allocation may not be...
[ { "code": null, "e": 24548, "s": 24520, "text": "\n06 Oct, 2021" }, { "code": null, "e": 24869, "s": 24548, "text": "Deque or Double ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but are more effi...
How to create transparent widgets using Tkinter?
A Tkinter widget in an application can be provided with Transparent background. The background property of any widget is controlled by the widget itself. However, to provide a transparent background to a particular widget, we have to use wm_attributes('transparentcolor', 'colorname') method. It works in the widget only...
[ { "code": null, "e": 1216, "s": 1062, "text": "A Tkinter widget in an application can be provided with Transparent background. The background property of any widget is controlled by the widget itself." }, { "code": null, "e": 1462, "s": 1216, "text": "However, to provide a transp...
Unity - The Slider
In this chapter, we will learn about the last UI element in this series. The Slider is commonly used where a certain value should be set between a maximum and minimum value pair. One of the most common usage of this is for audio volume, or screen brightness. To create a slider, go to Create → UI → Slider. A new Slider ...
[ { "code": null, "e": 2474, "s": 2215, "text": "In this chapter, we will learn about the last UI element in this series. The Slider is commonly used where a certain value should be set between a maximum and minimum value pair. One of the most common usage of this is for audio volume, or screen bright...
Object-oriented filesystem paths in Python (pathlib)
The pathlib module provides an object oriented approach to handling filesystem paths. The module also provides functionality appropriate for various operating systems. Classes defined in this module are of two types – pure path types and concrete path types. While pure paths can only perform purely computational operat...
[ { "code": null, "e": 1444, "s": 1062, "text": "The pathlib module provides an object oriented approach to handling filesystem paths. The module also provides functionality appropriate for various operating systems. Classes defined in this module are of two types – pure path types and concrete path t...
Sorted matrix | Practice | GeeksforGeeks
Given an NxN matrix Mat. Sort all elements of the matrix. Example 1: Input: N=4 Mat=[[10,20,30,40], [15,25,35,45] [27,29,37,48] [32,33,39,50]] Output: 10 15 20 25 27 29 30 32 33 35 37 39 40 45 48 50 Explanation: Sorting the matrix gives this result. Example 2: Input: N=3 Mat=[[1,5,3],[2,8,7],[4,6,9]] Output: 1 2 3 ...
[ { "code": null, "e": 296, "s": 238, "text": "Given an NxN matrix Mat. Sort all elements of the matrix." }, { "code": null, "e": 307, "s": 296, "text": "Example 1:" }, { "code": null, "e": 491, "s": 307, "text": "Input:\nN=4\nMat=[[10,20,30,40],\n[15,25,35,45] ...
SQL Tryit Editor v1.6
SELECT CustomerName,City FROM Customers; ​ Edit the SQL Statement, and click "Run SQL" to see the result. This SQL-Statement is not supported in the WebSQL Database. The example still works, because it uses a modified version of SQL. Your browser does not support WebSQL. Your are now using a light-version of the Try-SQ...
[ { "code": null, "e": 41, "s": 0, "text": "SELECT CustomerName,City FROM Customers;" }, { "code": null, "e": 43, "s": 41, "text": "​" }, { "code": null, "e": 106, "s": 43, "text": "Edit the SQL Statement, and click \"Run SQL\" to see the result." }, { "...
close driver method - Selenium Python - GeeksforGeeks
15 May, 2020 Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests using Selenium WebDriver. To open a webpage using Selenium Python, checkout – Navigating links using get method – Selenium Python. Just being able ...
[ { "code": null, "e": 25647, "s": 25619, "text": "\n15 May, 2020" }, { "code": null, "e": 26386, "s": 25647, "text": "Selenium’s Python Module is built to perform automated testing with Python. Selenium Python bindings provides a simple API to write functional/acceptance tests usi...
How to Add a TextView with Rounded Corner in Android?
18 Feb, 2021 TextView is an essential object of an Android application. It comes in the list of some basic objects of android and used to print text on the screen. In order to create better apps, we should learn that how can we create a TextView which have a background with rounded corners. We can implement this skill ...
[ { "code": null, "e": 52, "s": 24, "text": "\n18 Feb, 2021" }, { "code": null, "e": 506, "s": 52, "text": "TextView is an essential object of an Android application. It comes in the list of some basic objects of android and used to print text on the screen. In order to create bett...
Working with Lists – Python .docx Module
07 Mar, 2022 Prerequisite: Working with .docx module Word documents contain formatted text wrapped within three object levels. The Lowest level- run objects, middle level- paragraph objects, and highest level- document object. So, we cannot work with these documents using normal text editors. But, we can manipulate the...
[ { "code": null, "e": 28, "s": 0, "text": "\n07 Mar, 2022" }, { "code": null, "e": 68, "s": 28, "text": "Prerequisite: Working with .docx module" }, { "code": null, "e": 432, "s": 68, "text": "Word documents contain formatted text wrapped within three object le...
Ohm’s Law – Definition, Formula, Applications, Limitations
23 Nov, 2021 According to Ohm’s law, the voltage or potential difference between two locations is proportional to the current of electricity flowing through the resistance, and the resistance of the circuit is proportional to the current or electricity travelling through the resistance. V=IR is the formula for Ohm’s la...
[ { "code": null, "e": 28, "s": 0, "text": "\n23 Nov, 2021" }, { "code": null, "e": 517, "s": 28, "text": "According to Ohm’s law, the voltage or potential difference between two locations is proportional to the current of electricity flowing through the resistance, and the resista...
How to switch the language of the page using JavaScript ?
16 Nov, 2020 In this article, we will describe the method to switch between languages of a page depending upon the choice of the user. The method works by using the hash fragment of the URL as an identifier that can be used later detected by the script to change the language. The hash is accessed using window.location....
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Nov, 2020" }, { "code": null, "e": 150, "s": 28, "text": "In this article, we will describe the method to switch between languages of a page depending upon the choice of the user." }, { "code": null, "e": 424, "s": 15...
Gun Detection using Python-OpenCV
10 May, 2020 Prerequisites: Python OpenCV Gun Detection using Object Detection is a helpful tool to have in your repository. It forms the backbone of many fantastic industrial applications. OpenCV(Open Source Computer Vision Library) is a highly optimized library with focus on Real-Time Applications. Approach: 1) Creat...
[ { "code": null, "e": 53, "s": 25, "text": "\n10 May, 2020" }, { "code": null, "e": 82, "s": 53, "text": "Prerequisites: Python OpenCV" }, { "code": null, "e": 342, "s": 82, "text": "Gun Detection using Object Detection is a helpful tool to have in your reposit...
Input in C++
01 Feb, 2021 The cin object in C++ is used to accept the input from the standard input device i.e., keyboard. it is the instance of the class istream. It is associated with the standard C input stream stdin. The extraction operator(>>) is used along with the object cin for reading inputs. The extraction operator extrac...
[ { "code": null, "e": 53, "s": 25, "text": "\n01 Feb, 2021" }, { "code": null, "e": 429, "s": 53, "text": "The cin object in C++ is used to accept the input from the standard input device i.e., keyboard. it is the instance of the class istream. It is associated with the standard C...
How to Enable Full-Screen Mode in Android?
16 Sep, 2021 In this article, we are going to learn how to enable full screen in Android Studio. Like if we are especially viewing an image then we want to view that on full screen. Here what we are going to implement is that we are basically hiding the navigation, status bar, and enabling the full-screen mode. We are ...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Sep, 2021" }, { "code": null, "e": 393, "s": 28, "text": "In this article, we are going to learn how to enable full screen in Android Studio. Like if we are especially viewing an image then we want to view that on full screen. Here w...
C program to find the areas of geometrical figures using switch case
Find the areas of rectangle, square, triangle, circle by using the switch case statement, User need to enter base, height, side, radius, breadth and length at runtime to calculate the areas of all geometrical figures. The solution to find the areas of rectangle, square, triangle, circle by using the switch case stateme...
[ { "code": null, "e": 1280, "s": 1062, "text": "Find the areas of rectangle, square, triangle, circle by using the switch case statement,\nUser need to enter base, height, side, radius, breadth and length at runtime to calculate the areas of all geometrical figures." }, { "code": null, "e...
Apache POI PPT - Installation
This chapter takes you through the process of setting up Apache POI on Windows and Linux based systems. Apache POI can be easily installed and integrated with your current Java environment following a few simple steps without any complex setup procedures. User administration is required while installation. Let us now p...
[ { "code": null, "e": 2325, "s": 2017, "text": "This chapter takes you through the process of setting up Apache POI on Windows and Linux based systems. Apache POI can be easily installed and integrated with your current Java environment following a few simple steps without any complex setup procedure...
The Math Behind A/B Testing with Example Python Code | by Nguyen Ngo | Towards Data Science
While taking the A/B testing course by Google on Udacity, I had some questions about some of the mathematical steps that were not clearly covered by the course. This is understandable because the course was intended to be a compressed and concise overview. To resolve my questions, I turned to other sources on the web a...
[ { "code": null, "e": 547, "s": 171, "text": "While taking the A/B testing course by Google on Udacity, I had some questions about some of the mathematical steps that were not clearly covered by the course. This is understandable because the course was intended to be a compressed and concise overview...
How many ways can get the instance of a Class class in Java?
You can create an object of the class named Class in two ways − Using new keyword as − Class obj = new Class(); Using the forName() method of the class named Class. Class obj = Class.forName("DemoTest");
[ { "code": null, "e": 1126, "s": 1062, "text": "You can create an object of the class named Class in two ways −" }, { "code": null, "e": 1149, "s": 1126, "text": "Using new keyword as −" }, { "code": null, "e": 1174, "s": 1149, "text": "Class obj = new Class();...
How do I calculate the date six months from the current date using the datetime Python module?
You can use the timedelta function from datetime module to achieve this. For example, >>> import datetime >>> today = datetime.date.today() >>> print today 2017-09-12 >>> six_months_later = today + datetime.timedelta(30*6) >>> print six_months_later 2018-03-11
[ { "code": null, "e": 1148, "s": 1062, "text": "You can use the timedelta function from datetime module to achieve this. For example," }, { "code": null, "e": 1323, "s": 1148, "text": ">>> import datetime\n>>> today = datetime.date.today()\n>>> print today\n2017-09-12\n>>> six_mon...
iOS - File Handling
File handling cannot be explained visually with the application and hence the key methods that are used for handling files are explained below. Note that the application bundle only has read permission and we won’t be able to modify the files. You can anyway modify the documents directory of your application. The metho...
[ { "code": null, "e": 2402, "s": 2091, "text": "File handling cannot be explained visually with the application and hence the key methods that are used for handling files are explained below. Note that the application bundle only has read permission and we won’t be able to modify the files. You can a...
PyQt5 - QPixmap Class
QPixmap class provides an off-screen representation of an image. It can be used as a QPaintDevice object or can be loaded into another widget, typically a label or button. Qt API has another similar class QImage, which is optimized for I/O and other pixel manipulations. Pixmap, on the other hand, is optimized for showi...
[ { "code": null, "e": 2135, "s": 1963, "text": "QPixmap class provides an off-screen representation of an image. It can be used as a QPaintDevice object or can be loaded into another widget, typically a label or button." }, { "code": null, "e": 2335, "s": 2135, "text": "Qt API has...
Android - Developer Tools
The android developer tools let you create interactive and powerful application for android platform. The tools can be generally categorized into two types. SDK tools SDK tools Platform tools Platform tools SDK tools are generally platform independent and are required no matter which android platform you are working on...
[ { "code": null, "e": 3764, "s": 3607, "text": "The android developer tools let you create interactive and powerful application for android platform. The tools can be generally categorized into two types." }, { "code": null, "e": 3774, "s": 3764, "text": "SDK tools" }, { "...
Natural Language Processing - Python
In this chapter, we will learn about language processing using Python. The following features make Python different from other languages − Python is interpreted − We do not need to compile our Python program before executing it because the interpreter processes Python at runtime. Python is interpreted − We do not need ...
[ { "code": null, "e": 1967, "s": 1896, "text": "In this chapter, we will learn about language processing using Python." }, { "code": null, "e": 2035, "s": 1967, "text": "The following features make Python different from other languages −" }, { "code": null, "e": 2177, ...
Koa.js - Cookies
Cookies are simple, small files/data that are sent to client with a server request and stored on the client side. Every time the user loads the website back, this cookie is sent with the request. This helps keep track of the users actions. There are numerous uses of HTTP Cookies. Session management Personalization(Reco...
[ { "code": null, "e": 2387, "s": 2106, "text": "Cookies are simple, small files/data that are sent to client with a server request and stored on the client side. Every time the user loads the website back, this cookie is sent with the request. This helps keep track of the users actions. There are num...
How to convert XML to Json and Json back to XML using Newtonsoft.json?
Json.NET supports converting JSON to XML and vice versa using the XmlNodeConverter. Elements, attributes, text, comments, character data, processing instructions, namespaces, and the XML declaration are all preserved when converting between the two The JsonConvert has two helper methods for converting between JSON and ...
[ { "code": null, "e": 1146, "s": 1062, "text": "Json.NET supports converting JSON to XML and vice versa using the XmlNodeConverter." }, { "code": null, "e": 1311, "s": 1146, "text": "Elements, attributes, text, comments, character data, processing instructions, namespaces, and the...
Coarsened Exact Matching in R. Causal Inference with MatchIt | by Zolzaya Luvsandorj | Towards Data Science
Haven’t we all heard the phrase ‘Correlation doesn’t imply causation’ and wondered ‘Then, what does’? Well, causal inference. Causal inference allows us to make conclusions about causal impact which can empower important decisions and provide valuable data-driven insights. Therefore, knowing the basics of causal infere...
[ { "code": null, "e": 761, "s": 171, "text": "Haven’t we all heard the phrase ‘Correlation doesn’t imply causation’ and wondered ‘Then, what does’? Well, causal inference. Causal inference allows us to make conclusions about causal impact which can empower important decisions and provide valuable dat...
MariaDB - Indexes & Statistics Tables
Indexes are tools for accelerating record retrieval. An index spawns an entry for each value within an indexed column. There are four types of indexes − Primary (one record represents all records) Primary (one record represents all records) Unique (one record represents multiple records) Unique (one record represents m...
[ { "code": null, "e": 2481, "s": 2362, "text": "Indexes are tools for accelerating record retrieval. An index spawns an entry for each value within an indexed column." }, { "code": null, "e": 2515, "s": 2481, "text": "There are four types of indexes −" }, { "code": null, ...
C# program to count occurrences of a word in string
Set the string first − string str = "Hello World! Hello!"; Now check the string for the occurrences of a word “Hello’ and loop through − while ((a = str1.IndexOf(pattern, a)) != -1) { a += pattern.Length; count++; } You can try to run the following code to count occurrences of a word in a string. Live Demo using ...
[ { "code": null, "e": 1085, "s": 1062, "text": "Set the string first −" }, { "code": null, "e": 1121, "s": 1085, "text": "string str = \"Hello World! Hello!\";" }, { "code": null, "e": 1199, "s": 1121, "text": "Now check the string for the occurrences of a word...
PHP | round( ) Function - GeeksforGeeks
30 Jul, 2021 While dealing with problems which have values consisting of a very high number of decimal digits such as (121.76763527823) we often come up with a problem of rounding them up. Rounding them up manually can be a very time consuming and erroneous practice. In place of that, an inbuilt function of PHP i.e rou...
[ { "code": null, "e": 24694, "s": 24666, "text": "\n30 Jul, 2021" }, { "code": null, "e": 25440, "s": 24694, "text": "While dealing with problems which have values consisting of a very high number of decimal digits such as (121.76763527823) we often come up with a problem of round...
C++ Program to Check if a Point d lies inside or outside a circle defined by Points a, b, c in a Plane
We shall consider a C++ Program to check if a point d lies inside or outside a circle defined by points a, b, c in a plane by using equation s = (x-xt)^2 + (y-yt)^2 – r*r Where, For any point t (xt, yt) on the plane, its position with respect to the circle defined by 3 points (x1, y1), (x2, y2), (x3, y3). for s < 0, t ...
[ { "code": null, "e": 1203, "s": 1062, "text": "We shall consider a C++ Program to check if a point d lies inside or outside a circle defined by points a, b, c in a plane by using equation" }, { "code": null, "e": 1233, "s": 1203, "text": "s = (x-xt)^2 + (y-yt)^2 – r*r" }, { ...
How to shift a graph along the X-axis in matplotlib?
To shift a graph along the X-axis in matplotlib, we can take the following steps − Set the figure size and adjust the padding between and around the subplots. Create x and y data points using numpy. Plot the x and y data points for the original curve. Plot the shifted graph, in the range of (1, 1+len(y)) with y data po...
[ { "code": null, "e": 1145, "s": 1062, "text": "To shift a graph along the X-axis in matplotlib, we can take the following steps −" }, { "code": null, "e": 1221, "s": 1145, "text": "Set the figure size and adjust the padding between and around the subplots." }, { "code": n...
Desktop Operations in ElectronJS - GeeksforGeeks
29 Sep, 2021 ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime. The el...
[ { "code": null, "e": 26138, "s": 26110, "text": "\n29 Sep, 2021" }, { "code": null, "e": 26439, "s": 26138, "text": "ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which ...
MVC Framework - Bundling
Bundling and Minification are two performance improvement techniques that improves the request load time of the application. Most of the current major browsers limit the number of simultaneous connections per hostname to six. It means that at a time, all the additional requests will be queued by the browser. To enable ...
[ { "code": null, "e": 2335, "s": 2025, "text": "Bundling and Minification are two performance improvement techniques that improves the request load time of the application. Most of the current major browsers limit the number of simultaneous connections per hostname to six. It means that at a time, al...
DynamoDB - Batch Writing
Batch writing operates on multiple items by creating or deleting several items. These operations utilize BatchWriteItem, which carries the limitations of no more than 16MB writes and 25 requests. Each item obeys a 400KB size limit. Batch writes also cannot perform item updates. Batch writes can manipulate items across ...
[ { "code": null, "e": 2670, "s": 2391, "text": "Batch writing operates on multiple items by creating or deleting several items. These operations utilize BatchWriteItem, which carries the limitations of no more than 16MB writes and 25 requests. Each item obeys a 400KB size limit. Batch writes also can...
Count of common multiples of two numbers in a range - GeeksforGeeks
07 Apr, 2021 Given a range from L to R and every Xth tile is painted black and every Yth tile is painted white in that range from L to R. If a tile is painted both white and black, then it is considered to be painted grey. The task is to find the number of tiles that are colored grey in range L to R (both inclusive). E...
[ { "code": null, "e": 25326, "s": 25298, "text": "\n07 Apr, 2021" }, { "code": null, "e": 25644, "s": 25326, "text": "Given a range from L to R and every Xth tile is painted black and every Yth tile is painted white in that range from L to R. If a tile is painted both white and bl...
Nested interface in Java
We can declare an interface in another interface or class. Such an interface is termed as a nested interface. The following are the rules governing a nested interface. A nested interface declared within an interface must be public. A nested interface declared within a class can have any access modifier. A nested interf...
[ { "code": null, "e": 1172, "s": 1062, "text": "We can declare an interface in another interface or class. Such an interface is termed as a nested interface." }, { "code": null, "e": 1230, "s": 1172, "text": "The following are the rules governing a nested interface." }, { ...
Find all subsequences with sum equals to K - GeeksforGeeks
17 Mar, 2022 Given an array arr[] of length N and a number K, the task is to find all the subsequences of the array whose sum of elements is K Examples: Input: arr[] = {1, 2, 3}, K = 3 Output: 1 2 3 Input: arr[] = {17, 18, 6, 11, 2, 4}, K = 6 Output: 2 4 6 Approach: The idea is to use the jagged array to store the...
[ { "code": null, "e": 24923, "s": 24895, "text": "\n17 Mar, 2022" }, { "code": null, "e": 25053, "s": 24923, "text": "Given an array arr[] of length N and a number K, the task is to find all the subsequences of the array whose sum of elements is K" }, { "code": null, "...
Commons Collections - Safe Empty Checks
CollectionUtils class of Apache Commons Collections library provides various utility methods for common operations covering wide range of use cases. It helps avoid writing boilerplate code. This library is very useful prior to jdk 8 as similar functionalities are now provided in Java 8's Stream API. isNotEmpty() method...
[ { "code": null, "e": 2501, "s": 2200, "text": "CollectionUtils class of Apache Commons Collections library provides various utility methods for common operations covering wide range of use cases. It helps avoid writing boilerplate code. This library is very useful prior to jdk 8 as similar functiona...
How to Create a Pivot table with multiple indexes from an excel sheet using Pandas in Python? - GeeksforGeeks
28 Jul, 2020 The term Pivot Table can be defined as the Pandas function used to create a spreadsheet-style pivot table as a DataFrame. It can be created using the pivot_table() method. Syntax: pandas.pivot_table(data, index=None) Parameters: data : DataFrameindex: column, Grouper, array, or list of the previous index:...
[ { "code": null, "e": 25092, "s": 25064, "text": "\n28 Jul, 2020" }, { "code": null, "e": 25265, "s": 25092, "text": " The term Pivot Table can be defined as the Pandas function used to create a spreadsheet-style pivot table as a DataFrame. It can be created using the pivot_table(...
C# Program to Implement an Interface in a Structure - GeeksforGeeks
15 Nov, 2021 Structure is a value type and a collection of variables of different data types under a single unit. It is almost similar to a class because both are user-defined data types and both hold a bunch of different data types. We can create a structure by using struct keyword. A structure can also hold construct...
[ { "code": null, "e": 24302, "s": 24274, "text": "\n15 Nov, 2021" }, { "code": null, "e": 24682, "s": 24302, "text": "Structure is a value type and a collection of variables of different data types under a single unit. It is almost similar to a class because both are user-defined ...
\xrightarrow - Tex Command
\xrightarrow - Used to create xrightarrow symbol. { \xrightarrow[optionalArgument] #1 } \xrightarrow command draws xrightarrow symbol. \xrightarrow a →a \xrightarrow ab →ab \xrightarrow{ab} →ab \xrightarrow[f]{\text{see (1)}} →fsee (1) \xrightarrow a →a \xrightarrow a \xrightarrow ab →ab \xrightarro...
[ { "code": null, "e": 8036, "s": 7986, "text": "\\xrightarrow - Used to create xrightarrow symbol." }, { "code": null, "e": 8074, "s": 8036, "text": "{ \\xrightarrow[optionalArgument] #1 }" }, { "code": null, "e": 8121, "s": 8074, "text": "\\xrightarrow command...
How to call C / C++ from Python? - GeeksforGeeks
29 Jul, 2020 In order to take advantage of the strength of both languages, developers use Python bindings which allows them to call C/C++ libraries from python. Now, the question arises that why there is a need for doing this? As we know that, C has faster execution speed and to overcome the limitation of Global Interp...
[ { "code": null, "e": 24256, "s": 24228, "text": "\n29 Jul, 2020" }, { "code": null, "e": 24404, "s": 24256, "text": "In order to take advantage of the strength of both languages, developers use Python bindings which allows them to call C/C++ libraries from python." }, { "...
How to Go back to previous activity in android
If you wants to go back from one activity to another activity, This example demonstrate about how to go back to previous activity in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/act...
[ { "code": null, "e": 1204, "s": 1062, "text": "If you wants to go back from one activity to another activity, This example demonstrate\nabout how to go back to previous activity in android." }, { "code": null, "e": 1333, "s": 1204, "text": "Step 1 − Create a new project in Androi...
Change value in Excel using Python - GeeksforGeeks
22 Jun, 2021 In this article, We are going to change the value in an Excel Spreadsheet using Python. Method 1: Using openxml: openpyxl is a Python library to read/write Excel xlsx/xlsm/xltx/xltm files. It was born from a lack of an existing library to read/write natively from Python the Office Open XML format. openpyxl...
[ { "code": null, "e": 24212, "s": 24184, "text": "\n22 Jun, 2021" }, { "code": null, "e": 24300, "s": 24212, "text": "In this article, We are going to change the value in an Excel Spreadsheet using Python." }, { "code": null, "e": 24325, "s": 24300, "text": "Me...
D3.js node.descendants() Function - GeeksforGeeks
23 Sep, 2020 The node.descendants() function in d3.js library is used to generate and return an array of descendant nodes. Syntax: node.descendants(); Parameters: This function does not accept any parameters. Return Values: This function returns an array. Below given are a few examples of the function given above. Exam...
[ { "code": null, "e": 26545, "s": 26517, "text": "\n23 Sep, 2020" }, { "code": null, "e": 26655, "s": 26545, "text": "The node.descendants() function in d3.js library is used to generate and return an array of descendant nodes." }, { "code": null, "e": 26663, "s": ...
Difference between float and double in C/C++ - GeeksforGeeks
26 Apr, 2018 For representing floating point numbers, we use float, double and long double. What’s the difference ? double has 2x more precision then float. float is a 32 bit IEEE 754 single precision Floating Point Number1 bit for the sign, (8 bits for the exponent, and 23* for the value), i.e. float has 7 decimal dig...
[ { "code": null, "e": 24153, "s": 24125, "text": "\n26 Apr, 2018" }, { "code": null, "e": 24232, "s": 24153, "text": "For representing floating point numbers, we use float, double and long double." }, { "code": null, "e": 24256, "s": 24232, "text": "What’s the ...
K-means clustering on the San Francisco Air Traffic open dataset | by Denys Mytnyk | Towards Data Science
Cluster analysis has become one of the most important methods in Data Analysis, Machine Learning and Data Science. The general idea of clustering is to divide a set of objects with various features into groups, called clusters. There are many algorithms used for clustering nowadays, but I am going to reveal the powerfu...
[ { "code": null, "e": 542, "s": 172, "text": "Cluster analysis has become one of the most important methods in Data Analysis, Machine Learning and Data Science. The general idea of clustering is to divide a set of objects with various features into groups, called clusters. There are many algorithms u...
Java.Lang.Double class in Java - GeeksforGeeks
03 Aug, 2021 Double class is a wrapper class for the primitive type double which contains several methods to effectively deal with a double value like converting it to a string representation, and vice-versa. An object of Double class can hold a single double value. There are mainly two constructors to initialize a Dou...
[ { "code": null, "e": 22648, "s": 22620, "text": "\n03 Aug, 2021" }, { "code": null, "e": 22968, "s": 22648, "text": "Double class is a wrapper class for the primitive type double which contains several methods to effectively deal with a double value like converting it to a string...
Tryit Editor v3.7
Tryit: HTML title attribute
[]
R - Object Oriented Programming - GeeksforGeeks
10 Aug, 2021 In this article, we will discuss Object-Oriented Programming (OOPs) in R Programming Language. We will discuss the S3 and S4 classes, inheritance in these classes, and the methods provided by these classes. In R programming, OOPs provide classes and objects as its key tools to reduce and manage the complex...
[ { "code": null, "e": 28990, "s": 28962, "text": "\n10 Aug, 2021" }, { "code": null, "e": 29197, "s": 28990, "text": "In this article, we will discuss Object-Oriented Programming (OOPs) in R Programming Language. We will discuss the S3 and S4 classes, inheritance in these classes,...
C program to compare if the two matrices are equal or not
The user has to enter the order of two matrices and elements of two matrices. Then, these two matrix are compared. If both matrix elements and size are equal, then it displays that the two matrices are equal. If size of matrix is equal but the elements are not equal, then it displays that the matrix can be compared but...
[ { "code": null, "e": 1177, "s": 1062, "text": "The user has to enter the order of two matrices and elements of two matrices. Then, these two matrix are compared." }, { "code": null, "e": 1271, "s": 1177, "text": "If both matrix elements and size are equal, then it displays that t...
Sum of Middle Elements of two sorted arrays | Practice | GeeksforGeeks
Given 2 sorted arrays Ar1 and Ar2 of size N each. Merge the given arrays and find the sum of the two middle elements of the merged array. Example 1: Input: N = 5 Ar1[] = {1, 2, 4, 6, 10} Ar2[] = {4, 5, 6, 9, 12} Output: 11 Explanation: The merged array looks like {1,2,4,4,5,6,6,9,10,12}. Sum of middle elements is 11 ...
[ { "code": null, "e": 364, "s": 226, "text": "Given 2 sorted arrays Ar1 and Ar2 of size N each. Merge the given arrays and find the sum of the two middle elements of the merged array." }, { "code": null, "e": 377, "s": 366, "text": "Example 1:" }, { "code": null, "e": ...
How to count number of characters in EditText while typing in android?
This example demonstrates how do I count number of characters in editText while typing in android. Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project. Step 2 − Add the following code to res/layout/activity_main.xml. <?xml version="1.0" encodin...
[ { "code": null, "e": 1161, "s": 1062, "text": "This example demonstrates how do I count number of characters in editText while typing in android." }, { "code": null, "e": 1290, "s": 1161, "text": "Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill ...
Check if two lists are identical in Python
In python data analysis, we may come across situation when we need to compare two lists and find out if they are identical meaning having same elements or not. Live Demo listA = ['Mon','Tue','Wed','Thu'] listB = ['Mon','Wed','Tue','Thu'] # Given lists print("Given listA: ",listA) print("Given listB: ",listB) # Sort th...
[ { "code": null, "e": 1222, "s": 1062, "text": "In python data analysis, we may come across situation when we need to compare two lists and find out if they are identical meaning having same elements or not." }, { "code": null, "e": 1233, "s": 1222, "text": " Live Demo" }, { ...
Format date as Year/Quarter in R - GeeksforGeeks
23 May, 2021 A date can be represented in multiple formats as per requirement. Some requirements only want information regarding year and quarter and other parts of a date seem unnecessary in such scenarios. In such cases, the date can be formatted to display only year and quarter. In this article we, will be looking a...
[ { "code": null, "e": 24851, "s": 24823, "text": "\n23 May, 2021" }, { "code": null, "e": 25231, "s": 24851, "text": "A date can be represented in multiple formats as per requirement. Some requirements only want information regarding year and quarter and other parts of a date seem...
Cordova - Camera
This plugin is used for taking photos or using files from the image gallery. Run the following code in the command prompt window to install this plugin. C:\Users\username\Desktop\CordovaProject>cordova plugin add cordova-plugincamera Now, we will create the button for calling the camera and img where the image will be...
[ { "code": null, "e": 2257, "s": 2180, "text": "This plugin is used for taking photos or using files from the image gallery." }, { "code": null, "e": 2333, "s": 2257, "text": "Run the following code in the command prompt window to install this plugin." }, { "code": null, ...
BBAug: A Package for Bounding Box Augmentation in PyTorch | by Harpal Sahota | Towards Data Science
Links: Paper Tensorflow Policies BBAug Object detection models like many neural network models work best when trained on large amounts of data. It is often the case that there is limited data available and many researchers around the world are looking into augmentations strategies to increase the amount of data availab...
[ { "code": null, "e": 179, "s": 172, "text": "Links:" }, { "code": null, "e": 185, "s": 179, "text": "Paper" }, { "code": null, "e": 205, "s": 185, "text": "Tensorflow Policies" }, { "code": null, "e": 211, "s": 205, "text": "BBAug" }, {...
How can we print multiple blank lines in python?
We can print multiple blank lines in python by using the \n character the number of times we need a blank line. For example, If you need 5 blank lines, you can use − Python 2.x: print "\n\n\n\n\n" Python 3.x: print("\n\n\n\n\n") You can use features like repetition operator in python to make this easier. For example, ...
[ { "code": null, "e": 1228, "s": 1062, "text": "We can print multiple blank lines in python by using the \\n character the number of times we need a blank line. For example, If you need 5 blank lines, you can use −" }, { "code": null, "e": 1292, "s": 1228, "text": "Python 2.x:\npr...
C++ Program to Store and Display Information Using Structure
A structure is a collection of items of different data types. It is very useful in creating complex data structures with different data type records. A structure is defined with the struct keyword. An example of a structure is as follows − struct employee { int empID; char name[50]; float salary; }; A program ...
[ { "code": null, "e": 1260, "s": 1062, "text": "A structure is a collection of items of different data types. It is very useful in creating complex data structures with different data type records. A structure is defined with the struct keyword." }, { "code": null, "e": 1302, "s": 126...
Consecutive elements sum array in JavaScript
We are required to write a JavaScript function that takes in an array of Numbers and returns a new array with elements as the sum of two consecutive elements from the original array. For example, if the input array is − const arr1 = [1, 1, 2, 7, 4, 5, 6, 7, 8, 9]; Then the output should be − const output = [2, 9, 9, 13...
[ { "code": null, "e": 1245, "s": 1062, "text": "We are required to write a JavaScript function that takes in an array of Numbers and returns a\nnew array with elements as the sum of two consecutive elements from the original array." }, { "code": null, "e": 1282, "s": 1245, "text":...
Python Data Access - Quick Guide
The Python standard for database interfaces is the Python DB-API. Most Python database interfaces adhere to this standard. You can choose the right database for your application. Python Database API supports a wide range of database servers such as − GadFly mSQL MySQL PostgreSQL Microsoft SQL Server 2000 Informix Inter...
[ { "code": null, "e": 3328, "s": 3205, "text": "The Python standard for database interfaces is the Python DB-API. Most Python database interfaces adhere to this standard." }, { "code": null, "e": 3456, "s": 3328, "text": "You can choose the right database for your application. Pyt...
std::stoul and std::stoull in C++ - GeeksforGeeks
05 Nov, 2019 std::stoul Convert string to unsigned integer. Parses str interpreting its content as an integral number of the specified base, which is returned as an unsigned long value. unsigned long stoul (const string& str, size_t* idx = 0, int base = 10); Parameters : str : String object with the representation o...
[ { "code": null, "e": 24042, "s": 24014, "text": "\n05 Nov, 2019" }, { "code": null, "e": 24053, "s": 24042, "text": "std::stoul" }, { "code": null, "e": 24215, "s": 24053, "text": "Convert string to unsigned integer. Parses str interpreting its content as an i...
Visualize and communicate uncertainties clearly with Python and Plotly | by JP Hwang | Towards Data Science
In this article, I want to show how easy it is to effectively visualise and communicate uncertainties and ranges. More importantly, I would like to demonstrate how helpful doing so can be in gaining an intuitive understanding of data and subsequent decision-making. Although most of us are aware of uncertainties in ever...
[ { "code": null, "e": 438, "s": 172, "text": "In this article, I want to show how easy it is to effectively visualise and communicate uncertainties and ranges. More importantly, I would like to demonstrate how helpful doing so can be in gaining an intuitive understanding of data and subsequent decisi...
Java Generics - No instanceOf
Because compiler uses type erasure, the runtime does not keep track of type parameters, so at runtime difference between Box<Integer> and Box<String> cannot be verified using instanceOf operator. Box<Integer> integerBox = new Box<Integer>(); //Compiler Error: //Cannot perform instanceof check against //parameterized ...
[ { "code": null, "e": 2836, "s": 2640, "text": "Because compiler uses type erasure, the runtime does not keep track of type parameters, so at runtime difference between Box<Integer> and Box<String> cannot be verified using instanceOf operator." }, { "code": null, "e": 3121, "s": 2836,...
Are you using Python with APIs? Learn how to use a retry decorator! | by Fabian Bosler | Towards Data Science
People often describe Python as a “glue-language.” The term “glue-language” to me entails that a language helps to connect systems and makes sure that data gets from A to B in a desired structure and format. I have built countless ETL-scripts (Extraction Transformation Load) with Python. All those scripts essentially a...
[ { "code": null, "e": 380, "s": 172, "text": "People often describe Python as a “glue-language.” The term “glue-language” to me entails that a language helps to connect systems and makes sure that data gets from A to B in a desired structure and format." }, { "code": null, "e": 743, "...
Find all the patterns of “1(0+)1” in a given string using Python Regex
In this tutorial, we are going to write a program which finds all the occurrences of the 1(0+1) in a string using the regexes. We have a re module in Python which helps us to work with the regular expressions. Let's see one sample case. Input: string = "Sample 1(0+)1 string with 1(0+)1 unnecessary patterns 1(0+)1" Outp...
[ { "code": null, "e": 1272, "s": 1062, "text": "In this tutorial, we are going to write a program which finds all the occurrences of the 1(0+1) in a string using the regexes. We have a re module in Python which helps us to work with the regular expressions." }, { "code": null, "e": 1299, ...
Program to find largest element in an array in C++
In this tutorial, we will be discussing a program to find the largest element in an array. For this, we will be provided with an array. Our task is to find the largest number from the elements inside the array. Live Demo #include <bits/stdc++.h> using namespace std; //finding largest integer int largest(int arr[], int...
[ { "code": null, "e": 1153, "s": 1062, "text": "In this tutorial, we will be discussing a program to find the largest element in an\narray." }, { "code": null, "e": 1273, "s": 1153, "text": "For this, we will be provided with an array. Our task is to find the largest number from\n...
Java Program to sort a List in case insensitive order
Let’s say your list is having the following elements − P, W, g, K, H, t, E Therefore, case sensitive order means, capital and small letters will be considered irrespective of case. The output would be − E, g, H, K, P, t, W The following is our array − String[] arr = new String[] { "P", "W", "g", "K", "H", "t", "E" }; C...
[ { "code": null, "e": 1117, "s": 1062, "text": "Let’s say your list is having the following elements −" }, { "code": null, "e": 1137, "s": 1117, "text": "P, W, g, K, H, t, E" }, { "code": null, "e": 1265, "s": 1137, "text": "Therefore, case sensitive order mean...
Uncovering the Potential of Materials Data using Matminer and Pymatgen | by Joyita Bhattacharya | Towards Data Science
Introduction The usage of different types of devices is an integral part of our everyday life. And these devices are made of myriad combinations of elements forming materials for daily applications. Materials scientists are engaged with the processing of these materials and studying their structures and properties. For...
[ { "code": null, "e": 185, "s": 172, "text": "Introduction" }, { "code": null, "e": 735, "s": 185, "text": "The usage of different types of devices is an integral part of our everyday life. And these devices are made of myriad combinations of elements forming materials for daily a...
How to pass entire array as an argument to a function in C language?
The array is a group of related items that store with a common name. Following are the two ways of passing arrays as arguments to functions − sending entire array as argument to function sending individual elements as argument to function To send entire array as argument, just send the array name in the function call. ...
[ { "code": null, "e": 1204, "s": 1062, "text": "The array is a group of related items that store with a common name. Following are the two ways of passing arrays as arguments to functions −" }, { "code": null, "e": 1249, "s": 1204, "text": "sending entire array as argument to func...
How to send Attachments and Email using nodemailer in Node.js ?
10 Feb, 2021 For this purpose, we will use a package called nodemailer. It is a module that makes email sending pretty easy. For using it, you will need to install by using the following command: $ npm install nodemailer Features of nodemailer module: It has zero dependencies and heavy security. You can use it hass...
[ { "code": null, "e": 28, "s": 0, "text": "\n10 Feb, 2021" }, { "code": null, "e": 213, "s": 28, "text": "For this purpose, we will use a package called nodemailer. It is a module that makes email sending pretty easy. For using it, you will need to install by using the following c...
JavaScript Date toISOString() Method
30 May, 2022 Below is the example of Date toISOString() method. Example: javascript <script> // Here a date has been assigned // while creating Date object var dateobj = new Date('October 15, 1996 05:35:32'); // Contents of above date object is converted // into a string using toISOString() function. va...
[ { "code": null, "e": 28, "s": 0, "text": "\n30 May, 2022" }, { "code": null, "e": 79, "s": 28, "text": "Below is the example of Date toISOString() method." }, { "code": null, "e": 89, "s": 79, "text": "Example: " }, { "code": null, "e": 100, "s...
Proof that Hamiltonian Cycle is NP-Complete
18 Jun, 2020 Prerequisite: NP-Completeness, Hamiltonian cycle. Hamiltonian Cycle: A cycle in an undirected graph G =(V, E) which traverses every vertex exactly once. Problem Statement:Given a graph G(V, E), the problem is to determine if the graph contains a Hamiltonian cycle consisting of all the vertices belonging to...
[ { "code": null, "e": 54, "s": 26, "text": "\n18 Jun, 2020" }, { "code": null, "e": 104, "s": 54, "text": "Prerequisite: NP-Completeness, Hamiltonian cycle." }, { "code": null, "e": 207, "s": 104, "text": "Hamiltonian Cycle: A cycle in an undirected graph G =(V...
Python | Find common elements in list of lists
12 Feb, 2019 The problem of finding the common elements in list of 2 lists is quite a common problem and can be dealt with ease and also has been discussed before many times. But sometimes, we require to find the elements that are in common from N lists. Let’s discuss certain ways in which this operation can be perform...
[ { "code": null, "e": 28, "s": 0, "text": "\n12 Feb, 2019" }, { "code": null, "e": 339, "s": 28, "text": "The problem of finding the common elements in list of 2 lists is quite a common problem and can be dealt with ease and also has been discussed before many times. But sometimes...
How to specify minimum & maximum number of characters allowed in an input field in HTML ?
28 Feb, 2022 Given an input field and the task is to set the minimum/maximum number of characters allowed in an input field in HTML. To set the maximum character limit in input field, we use <input> maxlength attribute. This attribute is used to specify the maximum number of characters enters into the <input> element. ...
[ { "code": null, "e": 28, "s": 0, "text": "\n28 Feb, 2022" }, { "code": null, "e": 148, "s": 28, "text": "Given an input field and the task is to set the minimum/maximum number of characters allowed in an input field in HTML." }, { "code": null, "e": 335, "s": 148,...
Matplotlib.pyplot.vlines() in Python
18 Nov, 2021 Matplotlib is a plotting library for creating static, animated, and interactive visualizations in Python. matplotlib.pyplot.vlines() is a function used in the plotting of a dataset. In matplotlib.pyplot.vlines(), vlines is the abbreviation for vertical lines.what this function does is very much clear f...
[ { "code": null, "e": 28, "s": 0, "text": "\n18 Nov, 2021" }, { "code": null, "e": 136, "s": 28, "text": "Matplotlib is a plotting library for creating static, animated, and interactive visualizations in Python. " }, { "code": null, "e": 447, "s": 138, "text":...
Type.FindInterfaces() Method in C# with Examples
06 May, 2019 Type.FindInterfaces(TypeFilter, Object) Method is used to return an array of Type objects which represents a filtered list of interfaces implemented or inherited by the current Type. All of the interfaces implemented by this class are considered during the search, whether declared by a base class or this c...
[ { "code": null, "e": 28, "s": 0, "text": "\n06 May, 2019" }, { "code": null, "e": 645, "s": 28, "text": "Type.FindInterfaces(TypeFilter, Object) Method is used to return an array of Type objects which represents a filtered list of interfaces implemented or inherited by the curren...
Program to convert speed in km/hr to m/sec and vice versa
16 Apr, 2021 Convert speed given in km/hr to m/sec and vice versa .Examples: Input : kmph = 72, mps = 10 Output : speed_in_mps = 20 speed_in_kmph = 36 Input : kmph = 54, mps = 15 Output : speed_in_mps = 15 speed_in_kmph = 54 Approach: 1 km = 1000 m and 1 hr = 3600 sec (60 min x 60 sec each). Co...
[ { "code": null, "e": 28, "s": 0, "text": "\n16 Apr, 2021" }, { "code": null, "e": 94, "s": 28, "text": "Convert speed given in km/hr to m/sec and vice versa .Examples: " }, { "code": null, "e": 263, "s": 94, "text": "Input : kmph = 72, mps = 10\nOutput : spee...
How to Redirect to Another Page After 5 Seconds using jQuery ? - GeeksforGeeks
14 Jul, 2021 In this article, we will learn, how to redirect to another page or URL after a specified time in jQuery. The built-in function used for performing the action is as follows. The setTimeout(callback, delay) function takes two parameters a callback and a time in milliseconds. When this method is called, the c...
[ { "code": null, "e": 26954, "s": 26926, "text": "\n14 Jul, 2021" }, { "code": null, "e": 27413, "s": 26954, "text": "In this article, we will learn, how to redirect to another page or URL after a specified time in jQuery. The built-in function used for performing the action is as...
How to change background color according to the mouse location using JavaScript ? - GeeksforGeeks
08 Jun, 2020 The background color can be changed according to the cursor position using the DOM (Document Object Model). In this article, we use the position of the cursor to set the value of the background. Approach: The approach is to use DOM manipulation to change the background according to the cursor position at a...
[ { "code": null, "e": 26499, "s": 26471, "text": "\n08 Jun, 2020" }, { "code": null, "e": 26694, "s": 26499, "text": "The background color can be changed according to the cursor position using the DOM (Document Object Model). In this article, we use the position of the cursor to s...
Employee Record System in C using File Handling - GeeksforGeeks
12 Nov, 2021 Employee Record System is software built to handle the primary housekeeping functions of a company. ERS helps companies keep track of all the employees and their records. It is used to manage the company using a computerized system. This software built to handle the records of employees of any company. It ...
[ { "code": null, "e": 25821, "s": 25793, "text": "\n12 Nov, 2021" }, { "code": null, "e": 26203, "s": 25821, "text": "Employee Record System is software built to handle the primary housekeeping functions of a company. ERS helps companies keep track of all the employees and their r...
8-bit game using pygame - GeeksforGeeks
02 Sep, 2021 Pygame is a python library that can be used specifically to design and build games. Pygame supports only 2d games that are built using different sprites. Pygame is not particularly best for designing games as it is very complex to use doesn’t have a proper GUI like unity but it definitely builds logic for ...
[ { "code": null, "e": 25705, "s": 25677, "text": "\n02 Sep, 2021" }, { "code": null, "e": 26097, "s": 25705, "text": "Pygame is a python library that can be used specifically to design and build games. Pygame supports only 2d games that are built using different sprites. Pygame is...
Implement Comment on a Particular Blog Functionality in Social Media Android App - GeeksforGeeks
09 Apr, 2021 This is the Part 11 of “Build a Social Media App on Android Studio” tutorial, and we are going to cover the following functionalities in this article: We are going to comment on the blog. Here we are going to write a comment, and then we will be showing the comments and will be updating the comment count. ...
[ { "code": null, "e": 26381, "s": 26353, "text": "\n09 Apr, 2021" }, { "code": null, "e": 26532, "s": 26381, "text": "This is the Part 11 of “Build a Social Media App on Android Studio” tutorial, and we are going to cover the following functionalities in this article:" }, { ...
PYGLET – Updating Sprite - GeeksforGeeks
19 Sep, 2021 In this article we will see how we can update the sprite in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia etc. A window is a “heavyweight” object occupying operating system resources. Windows may appear as floating r...
[ { "code": null, "e": 25809, "s": 25781, "text": "\n19 Sep, 2021" }, { "code": null, "e": 26645, "s": 25809, "text": "In this article we will see how we can update the sprite in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI ap...
Find the Missing Number in a sorted array - GeeksforGeeks
06 May, 2022 Given a list of n-1 integers and these integers are in the range of 1 to n. There are no duplicates in list. One of the integers is missing in the list. Write an efficient code to find the missing integer. Examples: Input : arr[] = [1, 2, 3, 4, 6, 7, 8]Output : 5 Input : arr[] = [1, 2, 3, 4, 5, 6, 8, 9]O...
[ { "code": null, "e": 26759, "s": 26731, "text": "\n06 May, 2022" }, { "code": null, "e": 26966, "s": 26759, "text": "Given a list of n-1 integers and these integers are in the range of 1 to n. There are no duplicates in list. One of the integers is missing in the list. Write an e...
How to declare the optional function parameters in JavaScript ? - GeeksforGeeks
10 Jun, 2019 To declare optional function parameters in JavaScript, there are two approaches: Using the Logical OR operator (‘||’):In this approach, the optional parameter is Logically ORed with the default value within the body of the function.Note: The optional parameters should always come at the end on the paramete...
[ { "code": null, "e": 26197, "s": 26169, "text": "\n10 Jun, 2019" }, { "code": null, "e": 26278, "s": 26197, "text": "To declare optional function parameters in JavaScript, there are two approaches:" }, { "code": null, "e": 26893, "s": 26278, "text": "Using the...
Program for sum of arithmetic series - GeeksforGeeks
01 Apr, 2021 A series with same common difference is known as arithmetic series. The first term of series is a and common difference is d. The series is looks like a, a + d, a + 2d, a + 3d, . . . Task is to find the sum of series. Examples: Input : a = 1 d = 2 n = 4 Output : 16 1 + 3 + 5 + 7 = 16 Inp...
[ { "code": null, "e": 26685, "s": 26657, "text": "\n01 Apr, 2021" }, { "code": null, "e": 26915, "s": 26685, "text": "A series with same common difference is known as arithmetic series. The first term of series is a and common difference is d. The series is looks like a, a + d, a ...
C++ Program to print Fibonacci Series using Class template - GeeksforGeeks
10 Oct, 2019 Given a number n, the task is to write a program in C++ to print the n-terms of Fibonacci Series using a Class templateThe Fibonacci numbers are the numbers in the following integer sequence. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ........ Examples: Input: n = 2 Output: 0, 1 Input: n = 9 Output: 0,...
[ { "code": null, "e": 26051, "s": 26023, "text": "\n10 Oct, 2019" }, { "code": null, "e": 26243, "s": 26051, "text": "Given a number n, the task is to write a program in C++ to print the n-terms of Fibonacci Series using a Class templateThe Fibonacci numbers are the numbers in the...
PYGLET – Unformatted Document - GeeksforGeeks
10 Jun, 2021 In this article we will see how we can create a unformatted document in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually rich GUI applications like games, multimedia etc. A window is a “heavyweight” object occupying operating system resources. Windows may appear a...
[ { "code": null, "e": 25537, "s": 25509, "text": "\n10 Jun, 2021" }, { "code": null, "e": 26120, "s": 25537, "text": "In this article we will see how we can create a unformatted document in PYGLET module in python. Pyglet is easy to use but powerful library for developing visually...
Python Program to find the Quotient and Remainder of two numbers - GeeksforGeeks
29 Aug, 2020 Given two numbers n and m. The task is to find the quotient and remainder of two numbers by dividing n by m. Examples: Input: n = 10 m = 3 Output: Quotient: 3 Remainder 1 Input n = 99 m = 5 Output: Quotient: 19 Remainder 4 Method 1: Naive approach The naive approach is to find the quotient using the do...
[ { "code": null, "e": 25562, "s": 25534, "text": "\n29 Aug, 2020" }, { "code": null, "e": 25671, "s": 25562, "text": "Given two numbers n and m. The task is to find the quotient and remainder of two numbers by dividing n by m." }, { "code": null, "e": 25681, "s": 2...
Possible Words using given characters in Python - GeeksforGeeks
13 Jun, 2019 Given a dictionary and a character array, print all valid words that are possible using characters from the array.Note: Repetitions of characters is not allowed.Examples: Input : Dict = ["go","bat","me","eat","goal","boy", "run"] arr = ['e','o','b', 'a','m','g', 'l'] Output : go, me, goal. This p...
[ { "code": null, "e": 26147, "s": 26119, "text": "\n13 Jun, 2019" }, { "code": null, "e": 26318, "s": 26147, "text": "Given a dictionary and a character array, print all valid words that are possible using characters from the array.Note: Repetitions of characters is not allowed.Ex...
Arrange given numbers to form the biggest number | Set 1 - GeeksforGeeks
28 Apr, 2022 Given an array of numbers, arrange them in a way that yields the largest value. For example, if the given numbers are {54, 546, 548, 60}, the arrangement 6054854654 gives the largest value. And if the given numbers are {1, 34, 3, 98, 9, 76, 45, 4}, then the arrangement 998764543431 gives the largest value....
[ { "code": null, "e": 26763, "s": 26735, "text": "\n28 Apr, 2022" }, { "code": null, "e": 27071, "s": 26763, "text": "Given an array of numbers, arrange them in a way that yields the largest value. For example, if the given numbers are {54, 546, 548, 60}, the arrangement 605485465...