Tutorial by Examples

Dojo received a new loader in Dojo 1.7 to accommodate for the toolkit's new AMD module format. This new loader added a few new configuration options that are crucial to defining packages, maps, and more. For details on the loader, see the Advanced AMD Usage tutorial. Important loader configuration p...
Detailed instructions on getting datetime set up or installed.
Start by installing the OS on the MicroSD card, either NOOBS or Raspbian, both provided by the Raspberry Pi foundation, available on their site. NOOBS, which stands for New Out Of Box Software, is designed for beginners, and is the easiest to install on your SD card. You can either follow their offi...
Make sure the following dependency is added to your app's build.gradle file under dependencies: compile 'com.android.support:design:25.3.1' Then you can use the Bottom sheet using these options: BottomSheetBehavior to be used with CoordinatorLayout BottomSheetDialog which is a dialog with a ...
You can achieve a Persistent Bottom Sheet attaching a BottomSheetBehavior to a child View of a CoordinatorLayout: <android.support.design.widget.CoordinatorLayout > <!-- ..... --> <LinearLayout android:id="@+id/bottom_sheet" android:elevation...
You can realize a modal bottom sheets using a BottomSheetDialogFragment. The BottomSheetDialogFragment is a modal bottom sheet. This is a version of DialogFragment that shows a bottom sheet using BottomSheetDialog instead of a floating dialog. Just define the fragment: public class MyBottomSheet...
The BottomSheetDialog is a dialog styled as a bottom sheet Just use: //Create a new BottomSheetDialog BottomSheetDialog dialog = new BottomSheetDialog(context); //Inflate the layout R.layout.my_dialog_layout dialog.setContentView(R.layout.my_dialog_layout); //Show the dialog dialog.show(); ...
The Advanced Package Tool, aptly named the 'apt' package manager can handle the installation and removal of software on the Debian, Slackware, and other Linux Distributions. Below are some simple examples of use: update This option retrieves and scans the Packages.gz files, so that information ab...
C# 7.0 allows throwing as an expression in certain places: class Person { public string Name { get; } public Person(string name) => Name = name ?? throw new ArgumentNullException(nameof(name)); public string GetFirstName() { var parts = Name.Split(' '); ...
C# 7.0 adds accessors, constructors and finalizers to the list of things that can have expression bodies: class Person { private static ConcurrentDictionary<int, string> names = new ConcurrentDictionary<int, string>(); private int id = GetId(); public Person(string n...
There are three ways you can access the Unity Asset Store: Open the Asset Store window by selecting Window→Asset Store from the main menu within Unity. Use the Shortcut key (Ctrl+9 on Windows / ⌘9 on Mac OS) Browse the web interface: https://www.assetstore.unity3d.com/ You may be prompted to...
After accessing the Asset Store and viewing the asset you'd like to download, simply click the Download button. The button text may also be Buy Now if the asset has an associated cost. If you are viewing the Unity Asset Store through the web interface, the Download button text may instead display...
After the asset has been downloaded in Unity, the Download or Buy Now button will change to Import. Selecting this option will prompt the user with a Import Unity Package window, where the user may select the asset files of which they'd like to import within their project. Select Import to confirm...
Files: To determine if a file exists, simply pass the filename to the Dir$ function and test to see if it returns a result. Note that Dir$ supports wild-cards, so to test for a specific file, the passed pathName should to be tested to ensure that it does not contain them. The sample below raises an...
NOTE: For brevity, the examples below use the FolderExists function from the Determining If Folders and Files Exist example in this topic. The MkDir statement can be used to create a new folder. It accepts paths containing drive letters (C:\Foo), UNC names (\\Server\Foo), relative paths (..\Foo...
Detailed instructions on getting video-streaming set up or installed.
This is useful if you use rust in the backend and elm on the front end enum Complex{ Message(String), Size(u64) } let c1 = Complex::Message("hi"); let c2 = Complex::Size(1024u64); The encoded Json from rust will be: c1: {"variant": "Message", ...
Regular expressions are often used in methods as parameters to check if other strings are present or to search and/or replace strings. You'll often see the following: string = "My not so long string" string[/so/] # gives so string[/present/] # gives nil string[/present/].nil? # gives ...
FreeBSD is known of its well-written handbook (link). The installation process is described in detail in the Chapter 2. Installing FreeBSD.
from paramiko import client ssh = client.SSHClient() # create a new SSHClient object ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) #auto-accept unknown host keys ssh.connect(hostname, username=username, port=port, password=password) #connect with a host stdin, stdout, stderr = ssh.ex...

Page 796 of 1336