What is NDPS Act

Shankar Bhatt
Updated on 25-Jun-2020 11:59:33

417 Views

The Narcotic Drugs and Psychotropic Substances Act, 1985 is generally referred to as the NDPS Act, which prohibits any individual who is engaged in any activity consisting of producing, cultivating, selling, purchasing, transporting, storing, and/or consuming any narcotic drug or psychotropic substance.When Was It Introduced?The Narcotic Drugs and Psychotropic Substances bill was presented in the Lok Sabha on 23 August 1985 and later, passed by both Lok Sabha and Rajya Sabha. Later on, the then President Giani Zail Singh received this on 16 September 1985 and came into force on 14 Nov 1985.

GCD and LCM of Two Numbers in Java

Chandu yadav
Updated on 25-Jun-2020 11:57:26

1K+ Views

Following is an example which computes find LCM and GCD of two given numbers.Programimport java.util.Scanner; public class LCM_GCD {    public static void lcm(int a, int b){       int max, step, lcm = 0;       if(a > b){          max = step = a;       } else{          max = step = b;       }       while(a!= 0) {          if(max%a == 0 && max%b == 0) {             lcm = max;             break;          }          max += step;       }       System.out.println("LCM of given numbers is :: "+lcm);    }    public static void gcd(int a,int b){       int i, hcf = 0;          for(i = 1; i

Perform Animation on CSS Color Property

George John
Updated on 25-Jun-2020 11:53:20

156 Views

To implement animation on the color property with CSS, you can try to run the following codeExampleLive Demo                    div {             width: 200px;             height: 300px;             background: white;             border: 10px solid red;             animation: myanim 3s infinite;             bottom: 30px;             position: absolute;          }          @keyframes myanim {             20% {                bottom: 100px;                box-shadow: 30px 45px 70px orange;                color: blue;             }          }                     Performing Animation on color property       This is our demo div!    

Perform Animation on CSS Border Top Right Radius Property

Samual Sam
Updated on 25-Jun-2020 11:52:02

204 Views

To implement animation on the border-top-right-radius property with CSS, you can try to run the following codeExampleLive Demo                    table,th,td {             border: 2px solid black;          }          #newTable {             width: 500px;             height: 300px;             background: yellow;             border: 15px solid yellow;             animation: myanim 3s infinite;             background-position: bottom left;             background-size: 50px;          }          @keyframes myanim {             30% {                background-color: orange;                border-spacing: 50px;                border-top-color: red;                border-top-right-radius: 150px;             }          }                     Performing Animation for border top right radius                             Subject             Student             Marks                                 PHP             Tom             90                                 Java             Henry             70                    

date.toISOString() Function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 11:51:40

261 Views

The Date object is a datatype built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The toISOString() function of the date object returns the simplified extended ISO format of the date.SyntaxIts Syntax is as followsdateObj.toISOString();Example Live Demo    JavaScript Example         ... Read More

Date toJSON Function in JavaScript

Samual Sam
Updated on 25-Jun-2020 11:51:17

285 Views

The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The toJSON() function of the date object returns the simplified extended ISO format of the date.SyntaxIts Syntax is as followsdateObj.toJSON();Example Live Demo    JavaScript Example       ... Read More

Difference Between Search Engine Friendly and Optimised Website

Shankar Bhatt
Updated on 25-Jun-2020 11:51:11

285 Views

This question always muddles the minds of those who want to start a website and get traffic to it as quickly as possible. However, it’s very crucial to know the answer to the question at the early stage, especially during the development because your developer can make your website search engine friendly. However, optimizing a website is a completely different task altogether.Search Engine Friendly Vs Search Engine OptimizedTurning a website search engine friendly is somewhat a one-time process. This process might involve a number of things but once it’s done there is not much required to do unless there is ... Read More

Repeat a Radial Gradient with CSS

karthikeya Boyini
Updated on 25-Jun-2020 11:49:41

247 Views

Use the repeating-radial-gradient() function to repeat radial gradient.You can try to run the following code to implement repeating-radial-gradient() function in CSSExampleLive Demo                    #demo {             height: 300px;             background: repeating-radial-gradient(green 20%, orange 40%, maroon 40%);          }                     Repeating radial gradient          

Java Program to Match Dates

karthikeya Boyini
Updated on 25-Jun-2020 11:49:33

214 Views

Firstly, we have considered the following two dates.SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd"); Date d1 = s.parse("2018-10-15"); Date d2 = s.parse("2018-11-10");Now, use the compareTo() method to compare both the dates. The results are displayed on the basis of the return value.if (d1.compareTo(d2) > 0) {    System.out.println("Date1 is after Date2!");    } else if (d1.compareTo(d2) < 0) {       System.out.println("Date1 is before Date2!");    } else if (d1.compareTo(d2) == 0) {       System.out.println("Date1 is equal to Date2!");    } else {       System.out.println("How to get here?"); }Example Live Demoimport java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class ... Read More

Align Flex Items at the Beginning of the Container with CSS

Arjun Thakur
Updated on 25-Jun-2020 11:49:09

196 Views

Use the justify-content property with value flex-start to align the flex-items at the beginning.You can try to run the following code to implement the flex-start valueExampleLive Demo                    .mycontainer {             display: flex;             background-color: red;             justify-content: flex-start;          }          .mycontainer > div {             background-color: orange;             text-align: center;             line-height: 60px;             font-size: 30px;             width: 100px;             margin: 5px;          }                     Result                Rank1          Rank2          Rank3          Rank4          

Advertisements