
Search In
Step 1. Create an empty GameObject with Line Renderer attached to it.
Step 2. Create an child GameObject to above with BoxCollider attached to it.
Step 3. Attach the below script to mainCamera
using UnityEngine;
using System
The Access Controls provide us the method which allows us to set access to classes , methods and other members in Ruby. They help us to bind the components to maintain the security of the methods throughout the project.
Ruby provid
I am having problem with having a GUI interface to be implemented via a second file which just contains the file to read, plots made and some new functions to be evaluated based on that.
I am trying to create a GUI application using Tkinter.
If you want to create date fields to assign current date in .py file in openerp, you can use the below code for this
from datetime import date
from openerp.osv import fields, osv
from openerp.tools.translate import _
class account_invoice(osv.osv_m
A JavaScript variable is simply a name of storage location. There are two types of variables in JavaScript : local variable and global variable.
There are some rules while declaring a JavaScript variable:.
1)Name must start with a letter (a to z or
Arithmetic operators perform arithmetic on numbers or literals or variables.
1) + addition
2) - subtraction
3) * multiplication
4) / division
5) % modulus
6) ++ increment
7) -- decrement
<
Undefined Vs Null in JavaScript
Undefined means a variable has been declared but not assign any value. While null is an assignment value. It can be assigned to a variable that represent no value.
For Example:
var x;
alert(typeof(x));
var y = nu
This method is like a constructor of other object oriented programming languages.
when you want to initialize some class variables while creating an object, we use this method..
like any other ruby method,it starts with def keyword
class abc
def
What is the use of list() function?
The list() function is used to assign values to a list of variables in one operation. list() function basically works on numerical arrays.
Syntax of list() function:-
list(variable1,variable2,variable3.....)
&l
Checking the date entered by the user correct of not as according to a predefined format or not.
Example 1)
$format = 'd-m-Y';
$input = 'asasasawasa-sldjs';
$date = DateTime::createFromFormat($format, $input);
if($date)
echo 'The Date you
