Tutorial by Examples: amp

Open the Maya listener with the button at the lower right corner of the help line. This opens the script listener. Create a Python tab from the tab bar. Here's a very basic script that will print out the positions of the cameras in a default scene. Enter this into the listener: import maya.cmds...
Sub DisplayExcelVersions() MsgBox "The version of Excel is " & Application.Version MsgBox "The version of the VBE is " & Application.VBE.Version End Sub The use of the Application.Version property is useful for ensuring code only operates on a compatible...
I have tested the following steps on Amazon EC2 with Ubuntu 14.04 Here is a summary of command lines to install LAMP technology stack (before installing wordpress): 1: Install LAMP technology stack Update linux #> sudo apt-get update -> update package repositories information #> su...
Introduction Consider the following problem: L is a sorted list containing n signed integers (n being big enough), for example [-5, -2, -1, 0, 1, 2, 4] (here, n has a value of 7). If L is known to contain the integer 0, how can you find the index of 0 ? Naïve approach The first thing that comes ...
Define a module (the model of dependencies and their graph): @Module public class CoffeeModule{ @Provides public CoffeeMaker provideCoffeeMaker(){ return new CoffeeMaker(); } @Provides public Coffee provideCoffee(CoffeeMaker coffeeMaker){ return new ...
This example shows how to populate report with data returned by a data view delegate. During the exercise, we will develop an inquiry screen showing list of Sales Orders between two dates. Data view delegate will be used to populate Sales Order information. Prerequisites: We start with declara...
Dynamically switch beetween multiple components using <component> element and pass data to v-bind:is attribute: Javascript: new Vue({ el: '#app', data: { currentPage: 'home' }, components: { home: { template: "<p>Home</p>" }, about...
{ "family": "example-task", "containerDefinitions": [ { "environment": [], "name": "example-container", "image": "example-namespace/example-image:latest", "cpu": 1...
A generic Car class has some car property and a description method class Car{ name:string; engineCapacity:string; constructor(name:string,engineCapacity:string){ this.name = name; this.engineCapacity = engineCapacity; } describeCar(){ console....
here countInstance is a static class variable class StaticTest{ static countInstance : number= 0; constructor(){ StaticTest.countInstance++; } } new StaticTest(); new StaticTest(); console.log(StaticTest.countInstance);
This is a simple RMI example with five Java classes and two packages, server and client. Server Package PersonListInterface.java public interface PersonListInterface extends Remote { /** * This interface is used by both client and server * @return List of Persons * @throws...
Open a new Query Window with current connection (Ctrl + N) Toggle between opened tabs (Ctrl + Tab) Show/Hide Results pane (Ctrl + R) Execute highlighted query (Ctrl + E) Make selected text uppercase or lowercase (Ctrl + Shift + U, Ctrl + Shift + L) Intellisense list member and complete word (...
Lazy loading modules helps us decrease the startup time. With lazy loading our application does not need to load everything at once, it only needs to load what the user expects to see when the app first loads. Modules that are lazily loaded will only be loaded when the user navigates to their routes...
ColumnColumn AExample formulaExample formulaRow 12Row 23Row 35=A1+A2=Sum(A1,A2)
To get random data from certain collection refer to $sample aggregation. db.emplyees.aggregate({ $sample: { size:1 } }) where size stands for number of items to select.
This is really easy. All TIMESTAMP values are stored in universal time, and always converted to the present time_zone setting whenever they are rendered. SET SESSION time_zone='America/Los_Angeles'; SELECT timestamp_sold FROM sales WHERE state_sold = 'CA' Why is this? TIMESTAMP values are...
Javascript timestamps are based on the venerable UNIX time_t data type, and show the number of milliseconds since 1970-01-01 00:00:00 UTC. This expression gets the current time as a Javascript timestamp integer. (It does so correctly regardless of the current time_zone setting.) ROUND(UNIX_TIMEST...
If you have a Javascript timestamp value, for example 1478960868932, you can convert that to a MySQL fractional time value like this: FROM_UNIXTIME(1478960868932 * 0.001) It's simple to use that kind of expression to store your Javascript timestamp into a MySQL table. Do this: INSERT INTO table...
ActionScript 2.0: _root.createTextField("message", 0, 5, 5, 300, 50); var tf:TextFormat = new TextFormat(); tf.color = 0xFF0000; tf.size = 32; tf.bold = true; message.setTextFormat(tf); message.text = "Hello World!"; First function creates a TextField named "mess...

Page 28 of 46