Tutorial by Examples

Separate the construction of a complex object from its representation so that the same construction process can create different representations and and provides a high level of control over the assembly of the objects. In this example demonstrates the Builder pattern in which different vehicles ar...
Specify the kind of objects to create using a prototypical instance, and create new objects by copying this prototype. In this example demonstrates the Prototype pattern in which new Color objects are created by copying pre-existing, user-defined Colors of the same type. using System; using Syste...
Provide an interface for creating families of related or dependent objects without specifying their concrete classes. In this example demonstrates the creation of different animal worlds for a computer game using different factories. Although the animals created by the Continent factories are diffe...
while true; do echo ok done or while :; do echo ok done or until false; do echo ok done
function positive() { return 0 } function negative() { return 1 }
if true; then echo Always executed fi if false; then echo Never executed fi
Vim plugins are addons that can be used to change or enhance functionality of vim. There is a good list of plugins at vimawesome
Search role in Ansible Galaxy ansible-galaxy search role_name Install role from Ansible Galaxy ansible-galaxy install role_name More help ansible-galaxy --help
#include <highgui.h> //... cv::Mat img = cv::imread("img.jpg"); ...
Show how to use cv::VideoCapture. Here is the example of loading video from file: #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/core/core.hpp" #include <iostream> using namespace cv; VideoCapture videoSourc...
Show how to use cv::VideoCapture with e.g. a webcam. Capturing frames from webcam and display it. Here is the example code: #include <iostream> #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/core/core.hpp" ...
Show how to use cv::VideoWriter. #include "opencv2/highgui/highgui.hpp" #include <iostream> using namespace cv; using namespace std; int main(int argc, char* argv[]) { VideoCapture cap(0); // open the video camera no. 0 if (!cap.isOpened()) // if not success, e...
Actually, Live Capture example is good for capturing images, so I am using it to capture images and save them in a folder. #include <fstream> #include <string> #include <opencv2/highgui/highgui.hpp> #include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc....
using System; using Xamarin.Forms; namespace contact_picker { public class App : Application { public App () { // The root page of your application MainPage = new MyPage(); } protected override void OnStart () ...
using System; using Xamarin.Forms; namespace contact_picker { public class MyPage : ContentPage { Button button; public MyPage () { button = new Button { Text = "choose contact" }; button....
using System; using Xamarin.Forms; namespace contact_picker { public class ChooseContactPage : ContentPage { public ChooseContactPage () { } } }
using Android.App; using Android.OS; using Android.Content; using Android.Database; using Xamarin.Forms; namespace contact_picker.Droid { [Activity (Label = "ChooseContactActivity")] public class ChooseContactActivity : Activity { public string type_num...
using System; using Android.App; using Android.Content; using Android.Content.PM; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; using Xamarin.Forms; namespace contact_picker.Droid { [Activity (Label = "contact_picker.Droid", Icon = &...
using UIKit; using AddressBookUI; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; using contact_picker; using contact_picker.iOS; [assembly: ExportRenderer (typeof(ChooseContactPage), typeof(ChooseContactRenderer))] namespace contact_picker.iOS { public partial class Choose...
Sample table (say Employee) structure Column NameDatatypeIDINTF_NameSTRINGL_NameSTRINGPhoneSTRINGAddressSTRING Project all the columns Use wild card * to project all the columns. e.g. Select * from Employee Project selected columns (say ID, Name) Use name of columns in the projection list. e...

Page 907 of 1336