Tutorial by Examples: al

SP.SOD.executeOrDelayUntilScriptLoaded(myFunction,"sp.js"); function myFunction(){ var clientContext = new SP.ClientContext(); var list = clientContext.get_web().get_lists().getByTitle("List Title"); var item = list.getItemById(1); // get item with ID == 1 ...
SP.SOD.executeOrDelayUntilScriptLoaded(showDialog,"sp.js"); function showDialog(){ var dialogOptions = SP.UI.$create_DialogOptions(); dialogOptions.title = "Your Title Here!"; var dummyElement = document.createElement("div"); dummyElement.style.te...
Let's say we have model Travel with many related fields: class Travel(models.Model): tags = models.ManyToManyField( Tag, related_name='travels', ) route_places = models.ManyToManyField( RoutePlace, related_name='travels', ) coordinate = models.F...
If you have a function declared you can call it anywhere else in the code. Here is an example of calling a function: void setup(){ Serial.begin(9600); } void loop() { int i = 2; int k = squareNum(i); // k now contains 4 Serial.println(k); delay(500); } int squareNum(int a)...
int val = 0; // variable used to store the value // coming from the sensor void setup() { Serial.begin(9600); //Begin serializer to print out value // Note: Analogue pins are // automatically set as inputs } void loop() { val = analogRead(0); // read the va...
In JavaScript all arguments are passed by value. When a function assigns a new value to an argument variable, that change will not be visible to the caller: var obj = {a: 2}; function myfunc(arg){ arg = {a: 5}; // Note the assignment is to the parameter variable itself } myfunc(obj); conso...
Information The ABSTRACT and FINAL additions to the METHODS and CLASS statements allow you to define abstract and final methods or classes. An abstract method is defined in an abstract class and cannot be implemented in that class. Instead, it is implemented in a subclass of the class. Abstra...
Linux kernel source code can be found in https://www.kernel.org/ Download extract and enter to the kernel directory Type these commands step by steps in your terminal.(Choose the appropriate version you needed instead of linux-4.7.tar.gz ) wget http://www.kernel.org/pub/linux/kernel/v4.7/linux-4....
Declaration and usage. // a is const int, so it can't be changed const int a = 15; a = 12; // Error: can't assign new value to const variable a += 1; // Error: can't assign new value to const variable Binding of references and pointers int &b = a; // Error: ca...
Following code will release lock. lock(locker) { return 5; } For a detailed explanation, this SO answer is recommended.
Detailed instructions on getting ibm-midrange set up or installed.
Collection initialization syntax can be used when instantiating any class which implements IEnumerable and has a method named Add which takes a single parameter. In previous versions, this Add method had to be an instance method on the class being initialized. In C#6, it can also be an extension me...
Open Control Panel -> Programs and Features, choose the Visual Studio 2015 item, and then choose the Change button. In the setup wizard for Visual Studio, choose the Modify button. In the list of optional features to install, select the HTML/JavaScript (Apache Cordova) checkbox, c...
In Visual Studio, choose Tools->Extensions and Updates. In the Updates tab of the Extensions and Updates dialog box, choose Product Updates. If an update for Visual Studio Tools for Apache appears, select it, and then choose the Update button.
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <path d="M 10,10 L 100,50" stroke="blue" stroke-width="5" /> </svg> Result:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <path d="M 10,10 H 200" stroke="orange" stroke-width="5" /> </svg> Result:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <path d="M 10,10 V 200" stroke="green" stroke-width="5" /> </svg> Result:
final in Java can refer to variables, methods and classes. There are three simple rules: final variable cannot be reassigned final method cannot be overriden final class cannot be extended Usages Good Programming Practice Some developer consider it good practice to mark a variable final wh...
Hibernate (and embedded H2 DB) <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/...
reference : NetConnection , NetStream , Video related topics : Working with Sound Basic example of playing an external video file (FLV, MP4, F4V). Code will also play M4A audio files. var nc:NetConnection = new NetConnection(); nc.connect(null); var ns:NetStream = new NetStream(nc); va...

Page 60 of 269