Tutorial by Examples: al

In this example 2000 bytes will be transfered using DMA, Transmit Half Complete and Transmit Complete interrupts achieving the best performance. The first half of the transmit buffer is loaded with new data by the CPU in the Transmit Half Complete interrupt callback while the second half of the buf...
One of several applications of bit manipulation is converting a letter from small to capital or vice versa by choosing a mask and a proper bit operation. For example, the a letter has this binary representation 01(1)00001 while its capital counterpart has 01(0)00001. They differ solely in the bit in...
Create a file called hello.html with the following content: <!doctype html> <html> <head> <script src="//cdnjs.cloudflare.com/ajax/libs/dygraph/2.0.0/dygraph.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com...
Dim lo as ListObject Dim MyRange as Range Set lo = Sheet1.ListObjects(1) 'or Set lo = Sheet1.ListObjects("Table1") 'or Set lo = MyRange.ListObject
Dim lo as ListObject Set lo = Sheet1.ListObjects("Table1") lo.Unlist
This example is a quick setup of Angular and how to generate a quick example project. Prerequisites: Node.js 6.9.0 or greater. npm v3 or greater or yarn. Typings v1 or greater. Open a terminal and run the commands one by one: npm install -g typings or yarn global add typings npm install -...
The MSBuildWorspace is built around the concept of handling MSBuild solutions (.sln files) and their respective projects (.csproj, .vbproj). Adding new projects and documents to this workspace is not supported. string solutionPath = @"C:\Path\To\Solution\Sample.sln"; MSBuildWorkspace ...
In contrast to the other types of workspaces, the VisualStudioWorkspace, cannot be created manually. It can be accessed when building a Visual Studio extension. When inside your extension package project, go to [YourVSPackage]Package.cs file. There you can acquire the workspace in two ways: protec...
This example shows how to submit the WFFM form in code. var controlResults = new List<ControlResult>(); controlResults.Add(new ControlResult(Pdf_Request_Form.Name.ItemID.ToString(), "Name", name, string.Empty)); controlResults.Add(new ControlResult(Pdf_Request_Form.Email.ItemID.To...
Swift: centralManager.scanForPeripherals(withServices: nil, options: nil) Objective C: [centralManager scanForPeripheralsWithServices:nil options:nil];
Swift: let services = [CBUUID(string: SERVICE1_UUID), CBUUID(string: SERVICE2_UUID)] centralManager.scanForPeripherals(withServices: services, options: nil) Objective C: NSArray *services = @[[CBUUID UUIDWithString:SERVICE1_UUID], [CBUUID UUIDWithString:SERVICE2_UUID]]; [centralManager scanFo...
Swift: var centralManager:CBCentralManager! centralManager = CBCentralManager(delegate: self, queue: nil) Objective C: @property (nonatomic, strong) CBCentralManager *centralManager; centralManager = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
Swift: var centralManager:CBCentralManager! centralManager = CBCentralManager(delegate: self, queue: nil, options: [CBCentralManagerOptionRestoreIdentifierKey : "com.companyname.appname.central"]) Objective C: @property (nonatomic, strong) CBCentralManager *centralManager; self....
<div class="container"> <div class="row"> <div class="col s12"> <div class="card horizontal"> <div class="card-image"><img src="image.png"></div> <div class=&quot...
This example will scale the service to 4 instances: docker service scale visualizer=4 In Docker Swarm Mode we do not stop a service. We scale it down to zero: docker service scale visualizer=0
If you are using Bootstrap Modal then be sure that Model tabindex=-1 is removed. $('#targetId').select2({ width: '100%', dropdownParent: $("#myModal") })
The CSharpSyntaxWalker class is out of the box implementation of the Visitor pattern, that we can use to traverse our Syntax Tree. Here is a simple example of a Syntax Walker that collects all the struct-s that have a name, starting with the letter A: public class StructCollector : CSharpSyntaxWa...
var syntaxRoot = await document.GetSyntaxRootAsync(); var semanticModel = await document.GetSemanticModelAsync(); var sampleMethodInvocation = syntaxRoot .DescendantNodes() .OfType<InvocationExpressionSyntax>() .First(); var sampleMethodSymbol = semanticModel.GetSymbolI...
To initialize struct, you can do like this : public static void main (string[] args) { Value val = Value (typeof (int)); val.set_int (33); } But Vala brings another way to initialize values : public static void main (string[] args) { Value val = 33; } Your value is initializ...
This exemple shows how you can pass several types in function parameters : static void print_value (Value val) { print ("value-type : %s\n", val.type().name()); print ("value-content : %s\n\n", val.strdup_contents()); } public static void main (string[] args) { ...

Page 246 of 269