
Search In
For Loop: allow us to efficiently write a loop that needs to be executed specific number of times.
Syntax:
for(init statement; test expression; increment)
{
code(s) to be executed;
}
The init statement allow us to
initialize any loop co
Write a program in java to evaluate and print the value of the following mathematical function:
f(x,y) = 2x2 - y + 3
Vary the values of x and y according to the following table and prints the values of f(x,y) as shown in the table.
x = ( 3.0
Step-1 Go to audittrail module.
Step-2 audittrail->audittrail.py.
Step-3 After that used below code in audittrail.py file.
if self.check_rules(cr, SUPERUSER_ID, field_obj._obj, method):
x2m_model_ids = pool.get('ir.model').se
PHP Variable Scope
In PHP there are three variable scope. They are : Local , Global and Static.
LOCAL VARIABLE : Local variable is the one which is declared within the function, has the local scope and can be accessed within t
This tutorial will help to learn how to make use of bind function in javascript. We use “bind” function, that helps us to use the properties and methods of any other object.bind function creates
it's new method that has it's own this object which he
Local Variables: Variables that are defined within a function or a block are called local variables. They can only be used within a function or a block. These can't be accessed outside their scope or we can say outside their function.
#inc
In Ruby, we often sum up our code in the minimum number of lines. We have a method tap which helps us to perform number of operations, which are dependent on the intermediate results.
for example.
(1..10).tap{|x|}.to_a
=> [1, 2, 3, 4, 5, 3,5,1
Bouncing balls with collision from any 2Dcolliders/wall can be achieved by putting continuous force to the game object and assign a physics material to the game object you like to bounce on collision.
1. Gameobject must have rigidbody attached to it
Javascript data type can hold may data type like number string arrays object and other.
To declare a variable we use var keyword
example
var length = 16; // Number
var lastName = "Johnson"; // Strin
Hello reader's today we will discuss about SVG. SVG is a scalable vector graphics in which we can make a graphic for the web. In HTML5 <svg> element is used for the container of svg graphic. SVG is used by several method such as paths, boxe
