Tutorial by Examples: at

Detailed instructions on getting avr set up or installed.
In Kotlin, we can declare variable which can hold null reference. Suppose we have a nullable reference a, we can say "if a is not null, use it, otherwise use some non-null value x" var a: String? = "Nullable String Value" Now, a can be null. So when we need to access value o...
Detailed instructions on getting greasemonkey set up or installed.
To get the attribute of a WebElement, we use getAttribute on that WebElement. For example, consider the following html tag <a id="click" href="https://www.google.com"> We can find the Element's href attribute by WebElement e = driver.findElement(By.id("click&quot...
`To calculate 1D convolution by hand, you slide your kernel over the input, calculate the element-wise multiplications and sum them up. The easiest way is for padding=0, stride=1 So if your input = [1, 0, 2, 3, 0, 1, 1] and kernel = [2, 1, 3] the result of the convolution is [8, 11, 7, 9, 4], whic...
Detailed instructions on getting openui5 set up or installed.
What Are Notification Channels? Notification channels enable us app developers to group our notifications into groups—channels—with the user having the ability to modify notification settings for the entire channel at once. For example, for each channel, users can completely block all notifications...
Once you have discovered a desired BluetoothDevice object, you can connect to it by using its connectGatt() method which takes as parameters a Context object, a boolean indicating whether to automatically connect to the BLE device and a BluetoothGattCallback reference where connection events and cli...
You can request to be notified from the Gatt Server when the value of a characteristic has been changed: gatt.setCharacteristicNotification(characteristic, true); BluetoothGattDescriptor descriptor = characteristic.getDescriptor( UUID.fromString("00002902-0000-1000-8000-00805f9b34fb&quot...
In order for your device to act as a peripheral, first you need to open a BluetoothGattServer and populate it with at least one BluetoothGattService and one BluetoothGattCharacteristic: BluetoothGattServer server=bluetoothManager.openGattServer(context, bluetoothGattServerCallback); BluetoothGat...
Detailed instructions on getting angularjs-ng-repeat set up or installed.
VR Made Simple Just drop in a script tag and a-scene. A-Frame will handle 3D boilerplate, VR setup, and default controls. Nothing to install, no build steps. Declarative HTML HTML is easy to read, understand, and copy-and-paste. Being based on top of HTML, A-Frame is accessible to everyone: web d...
The installation is quite simple as there are seperate installers for MacOS and Windows machines available here. Currently two versions are for download: one beta and one stable. Setup will start after you downloaded the program and you´ll need to login with your GitHub credentials. That is really ...
The default icon of the Date-Picker in the Extension Library from OpenNTF is nice but not sexy. You can change it to one of the cool "Font Awesome Icons". First, add a DatePicker component to your page: <xe:djDateTextBox id="datePickerComp" value="#{myDoc.myDateField}&q...
from requests import post payload = {'key1' : 'value1', 'key2' : 'value2' } foo = post('http://httpbin.org/post', data=payload) To pass form encoded data with the post operation, data must be structured as dictionary and supplied as the data parameter. If the data d...
Install the dependencies: pip install jinja2 Install a framework: pip install flask Create the following structure ├── run.py └── templates Put a file template.html in the templates directory. The file can contain a jinja 2 variable named my_string. <!DOCTYPE html> <html lang=&qu...
Detailed instructions on getting jupyter-notebook set up or installed.
Simple HTTP Authentication Simple HTTP Authentication can be achieved with the following: from requests import post foo = post('http://natas0.natas.labs.overthewire.org', auth=('natas0', 'natas0')) This is technically short hand for the following: from requests import post from requests.au...
import UIKit struct Person { // Model let firstName: String let lastName: String } class GreetingViewController : UIViewController { // View + Controller var person: Person! let showGreetingButton = UIButton() let greetingLabel = UILabel() override func vie...
import UIKit struct Person { // Model let firstName: String let lastName: String } protocol GreetingView: class { func setGreeting(greeting: String) } protocol GreetingViewPresenter { init(view: GreetingView, person: Person) func showGreeting() } class Greetin...

Page 415 of 442